Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-05 23:59:04.785370
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042025
  port_id : 22083390
  datou_current_id : 2727227
in upload_from_sqlite, uploading in 22083390
in upload_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;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250307 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250308 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250309 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250310 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250311 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250312 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250313 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250314 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250315 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250316 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250317 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250319 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250320 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250321 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250322 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250323 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250324 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250325 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250326 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250327 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250328 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250329 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250330 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250331 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250401 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250402 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250403 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250404 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250405 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/05042025/23/58/image_05042025_23_58_01_5320.jpg', 2), ('/home/pi/Desktop/images/05042025/23/57/image_05042025_23_57_02_1964.jpg', 2), ('/home/pi/Desktop/images/05042025/23/56/image_05042025_23_56_01_7245.jpg', 2), ('/home/pi/Desktop/images/05042025/23/55/image_05042025_23_55_02_0352.jpg', 2), ('/home/pi/Desktop/images/05042025/23/54/image_05042025_23_54_01_5520.jpg', 2), ('/home/pi/Desktop/images/05042025/23/53/image_05042025_23_53_02_0293.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/05042025/23/58/image_05042025_23_58_01_5320.jpg', '/home/pi/Desktop/images/05042025/23/57/image_05042025_23_57_02_1964.jpg', '/home/pi/Desktop/images/05042025/23/56/image_05042025_23_56_01_7245.jpg', '/home/pi/Desktop/images/05042025/23/55/image_05042025_23_55_02_0352.jpg', '/home/pi/Desktop/images/05042025/23/54/image_05042025_23_54_01_5520.jpg', '/home/pi/Desktop/images/05042025/23/53/image_05042025_23_53_02_0293.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727227&datou=0
/home/pi/Desktop/images/05042025/23/58/image_05042025_23_58_01_5320.jpg
/home/pi/Desktop/images/05042025/23/57/image_05042025_23_57_02_1964.jpg
/home/pi/Desktop/images/05042025/23/56/image_05042025_23_56_01_7245.jpg
/home/pi/Desktop/images/05042025/23/55/image_05042025_23_55_02_0352.jpg
/home/pi/Desktop/images/05042025/23/54/image_05042025_23_54_01_5520.jpg
/home/pi/Desktop/images/05042025/23/53/image_05042025_23_53_02_0293.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 140.1353611946106 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75453290>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:02:03.098094
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fd770>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fd770>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:05:03.724515
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2), ('/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', 2), ('/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', 2), ('/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bf410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bf410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:08:02.927461
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2), ('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2), ('/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', 2), ('/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', 2), ('/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75535490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75535490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:11:03.105004
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2), ('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2), ('/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', 2), ('/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', 2), ('/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a1590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a1590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:14:03.475000
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2), ('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2), ('/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', 2), ('/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', 2), ('/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75532490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75532490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:17:03.719201
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2), ('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2), ('/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', 2), ('/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', 2), ('/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549f4d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549f4d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:20:02.928816
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/19/image_06042025_00_19_01_9692.jpg', 2), ('/home/pi/Desktop/images/06042025/00/07/image_06042025_00_07_01_9793.jpg', 2), ('/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2), ('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2), ('/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', 2), ('/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7552e5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7552e5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:23:03.239329
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/21/image_06042025_00_21_01_6581.jpg', 2), ('/home/pi/Desktop/images/06042025/00/20/image_06042025_00_20_02_0525.jpg', 2), ('/home/pi/Desktop/images/06042025/00/19/image_06042025_00_19_01_9692.jpg', 2), ('/home/pi/Desktop/images/06042025/00/07/image_06042025_00_07_01_9793.jpg', 2), ('/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2), ('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75536430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75536430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:26:06.372547
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/23/image_06042025_00_23_01_5513.jpg', 2), ('/home/pi/Desktop/images/06042025/00/21/image_06042025_00_21_01_6581.jpg', 2), ('/home/pi/Desktop/images/06042025/00/20/image_06042025_00_20_02_0525.jpg', 2), ('/home/pi/Desktop/images/06042025/00/19/image_06042025_00_19_01_9692.jpg', 2), ('/home/pi/Desktop/images/06042025/00/07/image_06042025_00_07_01_9793.jpg', 2), ('/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754703f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754703f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:29:03.735643
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/28/image_06042025_00_28_02_1112.jpg', 2), ('/home/pi/Desktop/images/06042025/00/27/image_06042025_00_27_02_1568.jpg', 2), ('/home/pi/Desktop/images/06042025/00/26/image_06042025_00_26_01_9072.jpg', 2), ('/home/pi/Desktop/images/06042025/00/23/image_06042025_00_23_01_5513.jpg', 2), ('/home/pi/Desktop/images/06042025/00/21/image_06042025_00_21_01_6581.jpg', 2), ('/home/pi/Desktop/images/06042025/00/20/image_06042025_00_20_02_0525.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f85d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f85d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:32:03.062595
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/31/image_06042025_00_31_01_2099.jpg', 2), ('/home/pi/Desktop/images/06042025/00/28/image_06042025_00_28_02_1112.jpg', 2), ('/home/pi/Desktop/images/06042025/00/27/image_06042025_00_27_02_1568.jpg', 2), ('/home/pi/Desktop/images/06042025/00/26/image_06042025_00_26_01_9072.jpg', 2), ('/home/pi/Desktop/images/06042025/00/23/image_06042025_00_23_01_5513.jpg', 2), ('/home/pi/Desktop/images/06042025/00/21/image_06042025_00_21_01_6581.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75527470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75527470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:35:03.819429
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/34/image_06042025_00_34_01_9361.jpg', 2), ('/home/pi/Desktop/images/06042025/00/31/image_06042025_00_31_01_2099.jpg', 2), ('/home/pi/Desktop/images/06042025/00/29/image_06042025_00_29_01_8718.jpg', 2), ('/home/pi/Desktop/images/06042025/00/28/image_06042025_00_28_02_1112.jpg', 2), ('/home/pi/Desktop/images/06042025/00/27/image_06042025_00_27_02_1568.jpg', 2), ('/home/pi/Desktop/images/06042025/00/26/image_06042025_00_26_01_9072.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75489450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75489450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:38:03.383890
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/35/image_06042025_00_35_02_1754.jpg', 2), ('/home/pi/Desktop/images/06042025/00/34/image_06042025_00_34_01_9361.jpg', 2), ('/home/pi/Desktop/images/06042025/00/31/image_06042025_00_31_01_2099.jpg', 2), ('/home/pi/Desktop/images/06042025/00/29/image_06042025_00_29_01_8718.jpg', 2), ('/home/pi/Desktop/images/06042025/00/28/image_06042025_00_28_02_1112.jpg', 2), ('/home/pi/Desktop/images/06042025/00/27/image_06042025_00_27_02_1568.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754af670>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754af670>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:41:03.021845
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/40/image_06042025_00_40_01_4191.jpg', 2), ('/home/pi/Desktop/images/06042025/00/39/image_06042025_00_39_01_9896.jpg', 2), ('/home/pi/Desktop/images/06042025/00/38/image_06042025_00_38_01_7075.jpg', 2), ('/home/pi/Desktop/images/06042025/00/35/image_06042025_00_35_02_1754.jpg', 2), ('/home/pi/Desktop/images/06042025/00/34/image_06042025_00_34_01_9361.jpg', 2), ('/home/pi/Desktop/images/06042025/00/31/image_06042025_00_31_01_2099.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75514530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75514530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:44:02.809137
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/42/image_06042025_00_42_01_2259.jpg', 2), ('/home/pi/Desktop/images/06042025/00/41/image_06042025_00_41_01_4479.jpg', 2), ('/home/pi/Desktop/images/06042025/00/40/image_06042025_00_40_01_4191.jpg', 2), ('/home/pi/Desktop/images/06042025/00/39/image_06042025_00_39_01_9896.jpg', 2), ('/home/pi/Desktop/images/06042025/00/38/image_06042025_00_38_01_7075.jpg', 2), ('/home/pi/Desktop/images/06042025/00/35/image_06042025_00_35_02_1754.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755054b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755054b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:47:03.821091
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/42/image_06042025_00_42_01_2259.jpg', 2), ('/home/pi/Desktop/images/06042025/00/41/image_06042025_00_41_01_4479.jpg', 2), ('/home/pi/Desktop/images/06042025/00/40/image_06042025_00_40_01_4191.jpg', 2), ('/home/pi/Desktop/images/06042025/00/39/image_06042025_00_39_01_9896.jpg', 2), ('/home/pi/Desktop/images/06042025/00/38/image_06042025_00_38_01_7075.jpg', 2), ('/home/pi/Desktop/images/06042025/00/35/image_06042025_00_35_02_1754.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fc3f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fc3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:50:02.819190
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/48/image_06042025_00_48_02_1040.jpg', 2), ('/home/pi/Desktop/images/06042025/00/43/image_06042025_00_43_02_0392.jpg', 2), ('/home/pi/Desktop/images/06042025/00/42/image_06042025_00_42_01_2259.jpg', 2), ('/home/pi/Desktop/images/06042025/00/41/image_06042025_00_41_01_4479.jpg', 2), ('/home/pi/Desktop/images/06042025/00/40/image_06042025_00_40_01_4191.jpg', 2), ('/home/pi/Desktop/images/06042025/00/39/image_06042025_00_39_01_9896.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75476630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75476630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:53:03.286292
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/52/image_06042025_00_52_01_6393.jpg', 2), ('/home/pi/Desktop/images/06042025/00/50/image_06042025_00_50_01_8157.jpg', 2), ('/home/pi/Desktop/images/06042025/00/48/image_06042025_00_48_02_1040.jpg', 2), ('/home/pi/Desktop/images/06042025/00/43/image_06042025_00_43_02_0392.jpg', 2), ('/home/pi/Desktop/images/06042025/00/42/image_06042025_00_42_01_2259.jpg', 2), ('/home/pi/Desktop/images/06042025/00/41/image_06042025_00_41_01_4479.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e7410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e7410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:56:03.514267
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 00:59:03.936508
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/00/56/image_06042025_00_56_01_2985.jpg', 2), ('/home/pi/Desktop/images/06042025/00/55/image_06042025_00_55_01_9472.jpg', 2), ('/home/pi/Desktop/images/06042025/00/54/image_06042025_00_54_01_4725.jpg', 2), ('/home/pi/Desktop/images/06042025/00/53/image_06042025_00_53_01_4130.jpg', 2), ('/home/pi/Desktop/images/06042025/00/52/image_06042025_00_52_01_6393.jpg', 2), ('/home/pi/Desktop/images/06042025/00/50/image_06042025_00_50_01_8157.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d93d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d93d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:02:03.532214
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/00/image_06042025_01_00_02_1298.jpg', 2), ('/home/pi/Desktop/images/06042025/00/59/image_06042025_00_59_01_6830.jpg', 2), ('/home/pi/Desktop/images/06042025/00/56/image_06042025_00_56_01_2985.jpg', 2), ('/home/pi/Desktop/images/06042025/00/55/image_06042025_00_55_01_9472.jpg', 2), ('/home/pi/Desktop/images/06042025/00/54/image_06042025_00_54_01_4725.jpg', 2), ('/home/pi/Desktop/images/06042025/00/53/image_06042025_00_53_01_4130.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b2590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b2590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:05:03.633258
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/03/image_06042025_01_03_02_2102.jpg', 2), ('/home/pi/Desktop/images/06042025/01/01/image_06042025_01_01_01_8787.jpg', 2), ('/home/pi/Desktop/images/06042025/01/00/image_06042025_01_00_02_1298.jpg', 2), ('/home/pi/Desktop/images/06042025/00/59/image_06042025_00_59_01_6830.jpg', 2), ('/home/pi/Desktop/images/06042025/00/56/image_06042025_00_56_01_2985.jpg', 2), ('/home/pi/Desktop/images/06042025/00/55/image_06042025_00_55_01_9472.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e7470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e7470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:08:03.179074
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/07/image_06042025_01_07_01_6831.jpg', 2), ('/home/pi/Desktop/images/06042025/01/06/image_06042025_01_06_02_0141.jpg', 2), ('/home/pi/Desktop/images/06042025/01/04/image_06042025_01_04_01_4426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/03/image_06042025_01_03_02_2102.jpg', 2), ('/home/pi/Desktop/images/06042025/01/01/image_06042025_01_01_01_8787.jpg', 2), ('/home/pi/Desktop/images/06042025/01/00/image_06042025_01_00_02_1298.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75479450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75479450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:11:03.174480
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/07/image_06042025_01_07_01_6831.jpg', 2), ('/home/pi/Desktop/images/06042025/01/06/image_06042025_01_06_02_0141.jpg', 2), ('/home/pi/Desktop/images/06042025/01/04/image_06042025_01_04_01_4426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/03/image_06042025_01_03_02_2102.jpg', 2), ('/home/pi/Desktop/images/06042025/01/01/image_06042025_01_01_01_8787.jpg', 2), ('/home/pi/Desktop/images/06042025/01/00/image_06042025_01_00_02_1298.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75533450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75533450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:14:03.382052
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/13/image_06042025_01_13_02_0395.jpg', 2), ('/home/pi/Desktop/images/06042025/01/12/image_06042025_01_12_01_4587.jpg', 2), ('/home/pi/Desktop/images/06042025/01/08/image_06042025_01_08_01_5245.jpg', 2), ('/home/pi/Desktop/images/06042025/01/07/image_06042025_01_07_01_6831.jpg', 2), ('/home/pi/Desktop/images/06042025/01/06/image_06042025_01_06_02_0141.jpg', 2), ('/home/pi/Desktop/images/06042025/01/04/image_06042025_01_04_01_4426.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754cf410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754cf410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:17:03.994350
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/14/image_06042025_01_14_02_1415.jpg', 2), ('/home/pi/Desktop/images/06042025/01/13/image_06042025_01_13_02_0395.jpg', 2), ('/home/pi/Desktop/images/06042025/01/12/image_06042025_01_12_01_4587.jpg', 2), ('/home/pi/Desktop/images/06042025/01/08/image_06042025_01_08_01_5245.jpg', 2), ('/home/pi/Desktop/images/06042025/01/07/image_06042025_01_07_01_6831.jpg', 2), ('/home/pi/Desktop/images/06042025/01/06/image_06042025_01_06_02_0141.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754924f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754924f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:20:03.097236
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', 2), ('/home/pi/Desktop/images/06042025/01/19/image_06042025_01_19_01_4761.jpg', 2), ('/home/pi/Desktop/images/06042025/01/18/image_06042025_01_18_01_9646.jpg', 2), ('/home/pi/Desktop/images/06042025/01/17/image_06042025_01_17_01_8603.jpg', 2), ('/home/pi/Desktop/images/06042025/01/14/image_06042025_01_14_02_1415.jpg', 2), ('/home/pi/Desktop/images/06042025/01/13/image_06042025_01_13_02_0395.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    image = Image.open(imagename)
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2687, in open
    % (filename if filename else fp))
OSError: cannot identify image file '/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b55f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b55f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:23:03.424472
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', 2), ('/home/pi/Desktop/images/06042025/01/19/image_06042025_01_19_01_4761.jpg', 2), ('/home/pi/Desktop/images/06042025/01/18/image_06042025_01_18_01_9646.jpg', 2), ('/home/pi/Desktop/images/06042025/01/17/image_06042025_01_17_01_8603.jpg', 2), ('/home/pi/Desktop/images/06042025/01/14/image_06042025_01_14_02_1415.jpg', 2), ('/home/pi/Desktop/images/06042025/01/13/image_06042025_01_13_02_0395.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754dc5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754dc5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:26:06.628657
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg', 2), ('/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg', 2), ('/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', 2), ('/home/pi/Desktop/images/06042025/01/20/image_06042025_01_20_01_4812.jpg', 2), ('/home/pi/Desktop/images/06042025/01/19/image_06042025_01_19_01_4761.jpg', 2), ('/home/pi/Desktop/images/06042025/01/18/image_06042025_01_18_01_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545a3b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545a3b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:29:03.699121
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg', 2), ('/home/pi/Desktop/images/06042025/01/26/image_06042025_01_26_01_6148.jpg', 2), ('/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg', 2), ('/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg', 2), ('/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', 2), ('/home/pi/Desktop/images/06042025/01/20/image_06042025_01_20_01_4812.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755333f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755333f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:32:03.132567
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg', 2), ('/home/pi/Desktop/images/06042025/01/26/image_06042025_01_26_01_6148.jpg', 2), ('/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg', 2), ('/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg', 2), ('/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', 2), ('/home/pi/Desktop/images/06042025/01/20/image_06042025_01_20_01_4812.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7544e450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7544e450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:35:03.951345
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/28/image_06042025_01_28_01_8082.jpg', 2), ('/home/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg', 2), ('/home/pi/Desktop/images/06042025/01/26/image_06042025_01_26_01_6148.jpg', 2), ('/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg', 2), ('/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg', 2), ('/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7552f4d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7552f4d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:38:02.932890
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/34/image_06042025_01_34_01_9426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/28/image_06042025_01_28_01_8082.jpg', 2), ('/home/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg', 2), ('/home/pi/Desktop/images/06042025/01/26/image_06042025_01_26_01_6148.jpg', 2), ('/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg', 2), ('/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755054b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755054b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:41:03.054618
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/40/image_06042025_01_40_01_6965.jpg', 2), ('/home/pi/Desktop/images/06042025/01/39/image_06042025_01_39_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/01/37/image_06042025_01_37_01_6440.jpg', 2), ('/home/pi/Desktop/images/06042025/01/34/image_06042025_01_34_01_9426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/28/image_06042025_01_28_01_8082.jpg', 2), ('/home/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75494550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75494550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:44:02.870294
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/43/image_06042025_01_43_01_9124.jpg', 2), ('/home/pi/Desktop/images/06042025/01/42/image_06042025_01_42_01_3230.jpg', 2), ('/home/pi/Desktop/images/06042025/01/41/image_06042025_01_41_02_2297.jpg', 2), ('/home/pi/Desktop/images/06042025/01/40/image_06042025_01_40_01_6965.jpg', 2), ('/home/pi/Desktop/images/06042025/01/39/image_06042025_01_39_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/01/37/image_06042025_01_37_01_6440.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755313d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755313d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:47:03.686318
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/46/image_06042025_01_46_01_6121.jpg', 2), ('/home/pi/Desktop/images/06042025/01/44/image_06042025_01_44_02_1536.jpg', 2), ('/home/pi/Desktop/images/06042025/01/43/image_06042025_01_43_01_9124.jpg', 2), ('/home/pi/Desktop/images/06042025/01/42/image_06042025_01_42_01_3230.jpg', 2), ('/home/pi/Desktop/images/06042025/01/41/image_06042025_01_41_02_2297.jpg', 2), ('/home/pi/Desktop/images/06042025/01/40/image_06042025_01_40_01_6965.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75519530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75519530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:50:03.295225
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/49/image_06042025_01_49_01_6542.jpg', 2), ('/home/pi/Desktop/images/06042025/01/47/image_06042025_01_47_01_8641.jpg', 2), ('/home/pi/Desktop/images/06042025/01/46/image_06042025_01_46_01_6121.jpg', 2), ('/home/pi/Desktop/images/06042025/01/44/image_06042025_01_44_02_1536.jpg', 2), ('/home/pi/Desktop/images/06042025/01/43/image_06042025_01_43_01_9124.jpg', 2), ('/home/pi/Desktop/images/06042025/01/42/image_06042025_01_42_01_3230.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b4610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b4610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:53:03.597377
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/51/image_06042025_01_51_01_8924.jpg', 2), ('/home/pi/Desktop/images/06042025/01/50/image_06042025_01_50_01_7344.jpg', 2), ('/home/pi/Desktop/images/06042025/01/49/image_06042025_01_49_01_6542.jpg', 2), ('/home/pi/Desktop/images/06042025/01/47/image_06042025_01_47_01_8641.jpg', 2), ('/home/pi/Desktop/images/06042025/01/46/image_06042025_01_46_01_6121.jpg', 2), ('/home/pi/Desktop/images/06042025/01/44/image_06042025_01_44_02_1536.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d25b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d25b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:56:02.829923
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 01:59:03.186083
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/58/image_06042025_01_58_01_6426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/57/image_06042025_01_57_01_5190.jpg', 2), ('/home/pi/Desktop/images/06042025/01/56/image_06042025_01_56_01_2433.jpg', 2), ('/home/pi/Desktop/images/06042025/01/55/image_06042025_01_55_01_2588.jpg', 2), ('/home/pi/Desktop/images/06042025/01/54/image_06042025_01_54_01_8638.jpg', 2), ('/home/pi/Desktop/images/06042025/01/53/image_06042025_01_53_01_8270.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75449570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75449570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:02:02.765257
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/01/59/image_06042025_01_59_02_0165.jpg', 2), ('/home/pi/Desktop/images/06042025/01/58/image_06042025_01_58_01_6426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/57/image_06042025_01_57_01_5190.jpg', 2), ('/home/pi/Desktop/images/06042025/01/56/image_06042025_01_56_01_2433.jpg', 2), ('/home/pi/Desktop/images/06042025/01/55/image_06042025_01_55_01_2588.jpg', 2), ('/home/pi/Desktop/images/06042025/01/54/image_06042025_01_54_01_8638.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550b430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550b430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:05:03.489561
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/01/image_06042025_02_01_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/01/59/image_06042025_01_59_02_0165.jpg', 2), ('/home/pi/Desktop/images/06042025/01/58/image_06042025_01_58_01_6426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/57/image_06042025_01_57_01_5190.jpg', 2), ('/home/pi/Desktop/images/06042025/01/56/image_06042025_01_56_01_2433.jpg', 2), ('/home/pi/Desktop/images/06042025/01/55/image_06042025_01_55_01_2588.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550d450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550d450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:08:03.320214
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/07/image_06042025_02_07_01_5681.jpg', 2), ('/home/pi/Desktop/images/06042025/02/06/image_06042025_02_06_01_6441.jpg', 2), ('/home/pi/Desktop/images/06042025/02/05/image_06042025_02_05_02_2501.jpg', 2), ('/home/pi/Desktop/images/06042025/02/01/image_06042025_02_01_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/01/59/image_06042025_01_59_02_0165.jpg', 2), ('/home/pi/Desktop/images/06042025/01/58/image_06042025_01_58_01_6426.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550d430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550d430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:11:03.504131
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/11/image_06042025_02_11_01_5086.jpg', 2), ('/home/pi/Desktop/images/06042025/02/09/image_06042025_02_09_01_9768.jpg', 2), ('/home/pi/Desktop/images/06042025/02/08/image_06042025_02_08_01_5270.jpg', 2), ('/home/pi/Desktop/images/06042025/02/07/image_06042025_02_07_01_5681.jpg', 2), ('/home/pi/Desktop/images/06042025/02/06/image_06042025_02_06_01_6441.jpg', 2), ('/home/pi/Desktop/images/06042025/02/05/image_06042025_02_05_02_2501.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75473610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75473610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:14:03.421123
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg', 2), ('/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/02/11/image_06042025_02_11_01_5086.jpg', 2), ('/home/pi/Desktop/images/06042025/02/10/image_06042025_02_10_01_9596.jpg', 2), ('/home/pi/Desktop/images/06042025/02/09/image_06042025_02_09_01_9768.jpg', 2), ('/home/pi/Desktop/images/06042025/02/08/image_06042025_02_08_01_5270.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754eb450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754eb450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:17:03.290872
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/14/image_06042025_02_14_01_8848.jpg', 2), ('/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg', 2), ('/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/02/11/image_06042025_02_11_01_5086.jpg', 2), ('/home/pi/Desktop/images/06042025/02/10/image_06042025_02_10_01_9596.jpg', 2), ('/home/pi/Desktop/images/06042025/02/09/image_06042025_02_09_01_9768.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755155f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755155f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:20:03.107290
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2), ('/home/pi/Desktop/images/06042025/02/15/image_06042025_02_15_02_0830.jpg', 2), ('/home/pi/Desktop/images/06042025/02/14/image_06042025_02_14_01_8848.jpg', 2), ('/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg', 2), ('/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/02/11/image_06042025_02_11_01_5086.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549c6d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549c6d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:23:03.471527
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg', 2), ('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2), ('/home/pi/Desktop/images/06042025/02/15/image_06042025_02_15_02_0830.jpg', 2), ('/home/pi/Desktop/images/06042025/02/14/image_06042025_02_14_01_8848.jpg', 2), ('/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg', 2), ('/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543e410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543e410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:26:06.424283
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg', 2), ('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2), ('/home/pi/Desktop/images/06042025/02/15/image_06042025_02_15_02_0830.jpg', 2), ('/home/pi/Desktop/images/06042025/02/14/image_06042025_02_14_01_8848.jpg', 2), ('/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg', 2), ('/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75486410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75486410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:29:03.431891
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg', 2), ('/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg', 2), ('/home/pi/Desktop/images/06042025/02/21/image_06042025_02_21_01_8025.jpg', 2), ('/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg', 2), ('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2), ('/home/pi/Desktop/images/06042025/02/15/image_06042025_02_15_02_0830.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75505450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75505450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:32:02.753143
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/29/image_06042025_02_29_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg', 2), ('/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg', 2), ('/home/pi/Desktop/images/06042025/02/21/image_06042025_02_21_01_8025.jpg', 2), ('/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg', 2), ('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75484590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75484590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:35:03.442049
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/29/image_06042025_02_29_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg', 2), ('/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg', 2), ('/home/pi/Desktop/images/06042025/02/21/image_06042025_02_21_01_8025.jpg', 2), ('/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg', 2), ('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549e430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549e430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:38:02.762041
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/29/image_06042025_02_29_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg', 2), ('/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg', 2), ('/home/pi/Desktop/images/06042025/02/21/image_06042025_02_21_01_8025.jpg', 2), ('/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg', 2), ('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f34b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f34b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:41:03.582391
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg', 2), ('/home/pi/Desktop/images/06042025/02/39/image_06042025_02_39_01_3614.jpg', 2), ('/home/pi/Desktop/images/06042025/02/30/image_06042025_02_30_01_8231.jpg', 2), ('/home/pi/Desktop/images/06042025/02/29/image_06042025_02_29_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg', 2), ('/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b1590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b1590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:44:02.864954
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2), ('/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', 2), ('/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg', 2), ('/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg', 2), ('/home/pi/Desktop/images/06042025/02/39/image_06042025_02_39_01_3614.jpg', 2), ('/home/pi/Desktop/images/06042025/02/30/image_06042025_02_30_01_8231.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bc610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bc610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:47:03.505863
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', 2), ('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2), ('/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', 2), ('/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg', 2), ('/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg', 2), ('/home/pi/Desktop/images/06042025/02/39/image_06042025_02_39_01_3614.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550b530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550b530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:50:02.769846
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', 2), ('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2), ('/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', 2), ('/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg', 2), ('/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg', 2), ('/home/pi/Desktop/images/06042025/02/39/image_06042025_02_39_01_3614.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75511590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75511590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:53:03.924912
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/45/image_06042025_02_45_01_5991.jpg', 2), ('/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', 2), ('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2), ('/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', 2), ('/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg', 2), ('/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75455450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75455450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:56:03.251199
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 02:59:03.676628
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/02/51/image_06042025_02_51_01_4817.jpg', 2), ('/home/pi/Desktop/images/06042025/02/45/image_06042025_02_45_01_5991.jpg', 2), ('/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', 2), ('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2), ('/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', 2), ('/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ca3d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ca3d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:02:02.693509
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/01/image_06042025_03_01_02_0566.jpg', 2), ('/home/pi/Desktop/images/06042025/02/51/image_06042025_02_51_01_4817.jpg', 2), ('/home/pi/Desktop/images/06042025/02/45/image_06042025_02_45_01_5991.jpg', 2), ('/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', 2), ('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2), ('/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f23f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f23f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:05:03.420899
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/01/image_06042025_03_01_02_0566.jpg', 2), ('/home/pi/Desktop/images/06042025/02/54/image_06042025_02_54_02_0949.jpg', 2), ('/home/pi/Desktop/images/06042025/02/51/image_06042025_02_51_01_4817.jpg', 2), ('/home/pi/Desktop/images/06042025/02/45/image_06042025_02_45_01_5991.jpg', 2), ('/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', 2), ('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ef410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ef410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:08:02.808396
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2), ('/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2), ('/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', 2), ('/home/pi/Desktop/images/06042025/03/01/image_06042025_03_01_02_0566.jpg', 2), ('/home/pi/Desktop/images/06042025/02/54/image_06042025_02_54_02_0949.jpg', 2), ('/home/pi/Desktop/images/06042025/02/51/image_06042025_02_51_01_4817.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b35b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b35b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:11:03.836913
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2), ('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2), ('/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2), ('/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543e490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543e490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:14:03.488825
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2), ('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2), ('/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2), ('/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e4470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e4470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:17:03.272097
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2), ('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2), ('/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2), ('/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75444410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75444410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:20:03.581487
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2), ('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2), ('/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2), ('/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e8630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e8630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:23:03.699245
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2), ('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2), ('/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2), ('/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7552b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7552b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:26:05.694476
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg', 2), ('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2), ('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2), ('/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d8450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d8450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:29:03.329203
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', 2), ('/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg', 2), ('/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg', 2), ('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f3530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f3530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:32:02.816683
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2), ('/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', 2), ('/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg', 2), ('/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg', 2), ('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754663d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754663d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:35:03.626802
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2), ('/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2), ('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2), ('/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', 2), ('/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f13f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f13f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:38:02.654557
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', 2), ('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2), ('/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2), ('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2), ('/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ab5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ab5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:41:03.735824
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', 2), ('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2), ('/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2), ('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549f430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549f430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:44:02.993893
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', 2), ('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2), ('/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2), ('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75515590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75515590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:47:04.004977
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', 2), ('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2), ('/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2), ('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ae430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ae430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:50:03.074302
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg', 2), ('/home/pi/Desktop/images/06042025/03/40/image_06042025_03_40_01_3017.jpg', 2), ('/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', 2), ('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2), ('/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    image = Image.open(imagename)
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2687, in open
    % (filename if filename else fp))
OSError: cannot identify image file '/home/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754dc170>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754dc170>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:53:03.242512
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg', 2), ('/home/pi/Desktop/images/06042025/03/48/image_06042025_03_48_02_1409.jpg', 2), ('/home/pi/Desktop/images/06042025/03/40/image_06042025_03_40_01_3017.jpg', 2), ('/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', 2), ('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a0450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a0450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:56:03.045013
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 03:59:03.828453
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/57/image_06042025_03_57_01_6838.jpg', 2), ('/home/pi/Desktop/images/06042025/03/56/image_06042025_03_56_01_4348.jpg', 2), ('/home/pi/Desktop/images/06042025/03/54/image_06042025_03_54_01_4883.jpg', 2), ('/home/pi/Desktop/images/06042025/03/53/image_06042025_03_53_01_4275.jpg', 2), ('/home/pi/Desktop/images/06042025/03/52/image_06042025_03_52_02_0792.jpg', 2), ('/home/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754cc3d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754cc3d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:02:03.251528
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/03/57/image_06042025_03_57_01_6838.jpg', 2), ('/home/pi/Desktop/images/06042025/03/56/image_06042025_03_56_01_4348.jpg', 2), ('/home/pi/Desktop/images/06042025/03/54/image_06042025_03_54_01_4883.jpg', 2), ('/home/pi/Desktop/images/06042025/03/53/image_06042025_03_53_01_4275.jpg', 2), ('/home/pi/Desktop/images/06042025/03/52/image_06042025_03_52_02_0792.jpg', 2), ('/home/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a5490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a5490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:05:03.745945
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', 2), ('/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg', 2), ('/home/pi/Desktop/images/06042025/03/57/image_06042025_03_57_01_6838.jpg', 2), ('/home/pi/Desktop/images/06042025/03/56/image_06042025_03_56_01_4348.jpg', 2), ('/home/pi/Desktop/images/06042025/03/54/image_06042025_03_54_01_4883.jpg', 2), ('/home/pi/Desktop/images/06042025/03/53/image_06042025_03_53_01_4275.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e13d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e13d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:08:02.529291
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2), ('/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', 2), ('/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg', 2), ('/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', 2), ('/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg', 2), ('/home/pi/Desktop/images/06042025/03/57/image_06042025_03_57_01_6838.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755145f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755145f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:11:03.682095
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2), ('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2), ('/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', 2), ('/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg', 2), ('/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', 2), ('/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e2450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e2450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:14:03.136914
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2), ('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2), ('/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', 2), ('/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg', 2), ('/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', 2), ('/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75525610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75525610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:17:03.917517
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2), ('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2), ('/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', 2), ('/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg', 2), ('/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', 2), ('/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a2630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a2630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:20:03.263222
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/09/image_06042025_04_09_01_2420.jpg', 2), ('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2), ('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2), ('/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', 2), ('/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg', 2), ('/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75491590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75491590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:23:03.625908
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/21/image_06042025_04_21_01_9415.jpg', 2), ('/home/pi/Desktop/images/06042025/04/20/image_06042025_04_20_01_6786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/09/image_06042025_04_09_01_2420.jpg', 2), ('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2), ('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2), ('/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f45d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f45d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:26:04.148883
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/22/image_06042025_04_22_02_1282.jpg', 2), ('/home/pi/Desktop/images/06042025/04/21/image_06042025_04_21_01_9415.jpg', 2), ('/home/pi/Desktop/images/06042025/04/20/image_06042025_04_20_01_6786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/09/image_06042025_04_09_01_2420.jpg', 2), ('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2), ('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e5610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e5610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:29:03.089681
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/26/image_06042025_04_26_01_9638.jpg', 2), ('/home/pi/Desktop/images/06042025/04/22/image_06042025_04_22_02_1282.jpg', 2), ('/home/pi/Desktop/images/06042025/04/21/image_06042025_04_21_01_9415.jpg', 2), ('/home/pi/Desktop/images/06042025/04/20/image_06042025_04_20_01_6786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/09/image_06042025_04_09_01_2420.jpg', 2), ('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c2450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c2450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:32:03.470999
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/31/image_06042025_04_31_01_8637.jpg', 2), ('/home/pi/Desktop/images/06042025/04/27/image_06042025_04_27_01_2465.jpg', 2), ('/home/pi/Desktop/images/06042025/04/26/image_06042025_04_26_01_9638.jpg', 2), ('/home/pi/Desktop/images/06042025/04/22/image_06042025_04_22_02_1282.jpg', 2), ('/home/pi/Desktop/images/06042025/04/21/image_06042025_04_21_01_9415.jpg', 2), ('/home/pi/Desktop/images/06042025/04/20/image_06042025_04_20_01_6786.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75522450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75522450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:35:03.894450
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/33/image_06042025_04_33_02_1982.jpg', 2), ('/home/pi/Desktop/images/06042025/04/32/image_06042025_04_32_01_9037.jpg', 2), ('/home/pi/Desktop/images/06042025/04/31/image_06042025_04_31_01_8637.jpg', 2), ('/home/pi/Desktop/images/06042025/04/27/image_06042025_04_27_01_2465.jpg', 2), ('/home/pi/Desktop/images/06042025/04/26/image_06042025_04_26_01_9638.jpg', 2), ('/home/pi/Desktop/images/06042025/04/22/image_06042025_04_22_02_1282.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75512450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75512450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:38:02.907882
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/35/image_06042025_04_35_01_4478.jpg', 2), ('/home/pi/Desktop/images/06042025/04/33/image_06042025_04_33_02_1982.jpg', 2), ('/home/pi/Desktop/images/06042025/04/32/image_06042025_04_32_01_9037.jpg', 2), ('/home/pi/Desktop/images/06042025/04/31/image_06042025_04_31_01_8637.jpg', 2), ('/home/pi/Desktop/images/06042025/04/27/image_06042025_04_27_01_2465.jpg', 2), ('/home/pi/Desktop/images/06042025/04/26/image_06042025_04_26_01_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755283f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755283f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:41:03.292713
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg', 2), ('/home/pi/Desktop/images/06042025/04/36/image_06042025_04_36_02_0728.jpg', 2), ('/home/pi/Desktop/images/06042025/04/35/image_06042025_04_35_01_4478.jpg', 2), ('/home/pi/Desktop/images/06042025/04/33/image_06042025_04_33_02_1982.jpg', 2), ('/home/pi/Desktop/images/06042025/04/32/image_06042025_04_32_01_9037.jpg', 2), ('/home/pi/Desktop/images/06042025/04/31/image_06042025_04_31_01_8637.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c83b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c83b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:44:02.829308
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/43/image_06042025_04_43_01_8841.jpg', 2), ('/home/pi/Desktop/images/06042025/04/42/image_06042025_04_42_01_4889.jpg', 2), ('/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg', 2), ('/home/pi/Desktop/images/06042025/04/40/image_06042025_04_40_01_8785.jpg', 2), ('/home/pi/Desktop/images/06042025/04/36/image_06042025_04_36_02_0728.jpg', 2), ('/home/pi/Desktop/images/06042025/04/35/image_06042025_04_35_01_4478.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754af450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754af450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:47:04.019065
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/46/image_06042025_04_46_01_7844.jpg', 2), ('/home/pi/Desktop/images/06042025/04/45/image_06042025_04_45_01_4750.jpg', 2), ('/home/pi/Desktop/images/06042025/04/44/image_06042025_04_44_02_0233.jpg', 2), ('/home/pi/Desktop/images/06042025/04/43/image_06042025_04_43_01_8841.jpg', 2), ('/home/pi/Desktop/images/06042025/04/42/image_06042025_04_42_01_4889.jpg', 2), ('/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75485430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75485430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:50:03.133349
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/46/image_06042025_04_46_01_7844.jpg', 2), ('/home/pi/Desktop/images/06042025/04/45/image_06042025_04_45_01_4750.jpg', 2), ('/home/pi/Desktop/images/06042025/04/44/image_06042025_04_44_02_0233.jpg', 2), ('/home/pi/Desktop/images/06042025/04/43/image_06042025_04_43_01_8841.jpg', 2), ('/home/pi/Desktop/images/06042025/04/42/image_06042025_04_42_01_4889.jpg', 2), ('/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ef430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ef430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:53:03.617301
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/46/image_06042025_04_46_01_7844.jpg', 2), ('/home/pi/Desktop/images/06042025/04/45/image_06042025_04_45_01_4750.jpg', 2), ('/home/pi/Desktop/images/06042025/04/44/image_06042025_04_44_02_0233.jpg', 2), ('/home/pi/Desktop/images/06042025/04/43/image_06042025_04_43_01_8841.jpg', 2), ('/home/pi/Desktop/images/06042025/04/42/image_06042025_04_42_01_4889.jpg', 2), ('/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755093f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755093f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:56:02.862615
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 04:59:03.564750
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/04/58/image_06042025_04_58_01_3723.jpg', 2), ('/home/pi/Desktop/images/06042025/04/57/image_06042025_04_57_01_5517.jpg', 2), ('/home/pi/Desktop/images/06042025/04/56/image_06042025_04_56_02_1986.jpg', 2), ('/home/pi/Desktop/images/06042025/04/55/image_06042025_04_55_01_3786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/54/image_06042025_04_54_01_8786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/47/image_06042025_04_47_02_1726.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75520470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75520470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:02:02.817522
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/01/image_06042025_05_01_01_2684.jpg', 2), ('/home/pi/Desktop/images/06042025/05/00/image_06042025_05_00_01_8052.jpg', 2), ('/home/pi/Desktop/images/06042025/04/59/image_06042025_04_59_01_7769.jpg', 2), ('/home/pi/Desktop/images/06042025/04/58/image_06042025_04_58_01_3723.jpg', 2), ('/home/pi/Desktop/images/06042025/04/57/image_06042025_04_57_01_5517.jpg', 2), ('/home/pi/Desktop/images/06042025/04/56/image_06042025_04_56_02_1986.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549a590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549a590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:05:03.505092
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/04/image_06042025_05_04_01_5954.jpg', 2), ('/home/pi/Desktop/images/06042025/05/03/image_06042025_05_03_01_4696.jpg', 2), ('/home/pi/Desktop/images/06042025/05/02/image_06042025_05_02_01_3364.jpg', 2), ('/home/pi/Desktop/images/06042025/05/01/image_06042025_05_01_01_2684.jpg', 2), ('/home/pi/Desktop/images/06042025/05/00/image_06042025_05_00_01_8052.jpg', 2), ('/home/pi/Desktop/images/06042025/04/59/image_06042025_04_59_01_7769.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f5470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f5470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:08:02.851511
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/06/image_06042025_05_06_01_6582.jpg', 2), ('/home/pi/Desktop/images/06042025/05/05/image_06042025_05_05_01_6579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/04/image_06042025_05_04_01_5954.jpg', 2), ('/home/pi/Desktop/images/06042025/05/03/image_06042025_05_03_01_4696.jpg', 2), ('/home/pi/Desktop/images/06042025/05/02/image_06042025_05_02_01_3364.jpg', 2), ('/home/pi/Desktop/images/06042025/05/01/image_06042025_05_01_01_2684.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75463590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75463590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:11:03.739296
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2), ('/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg', 2), ('/home/pi/Desktop/images/06042025/05/07/image_06042025_05_07_01_2492.jpg', 2), ('/home/pi/Desktop/images/06042025/05/06/image_06042025_05_06_01_6582.jpg', 2), ('/home/pi/Desktop/images/06042025/05/05/image_06042025_05_05_01_6579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/04/image_06042025_05_04_01_5954.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75530410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75530410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:14:02.706372
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2), ('/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg', 2), ('/home/pi/Desktop/images/06042025/05/07/image_06042025_05_07_01_2492.jpg', 2), ('/home/pi/Desktop/images/06042025/05/06/image_06042025_05_06_01_6582.jpg', 2), ('/home/pi/Desktop/images/06042025/05/05/image_06042025_05_05_01_6579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/04/image_06042025_05_04_01_5954.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754455b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754455b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:17:03.618074
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg', 2), ('/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg', 2), ('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2), ('/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg', 2), ('/home/pi/Desktop/images/06042025/05/07/image_06042025_05_07_01_2492.jpg', 2), ('/home/pi/Desktop/images/06042025/05/06/image_06042025_05_06_01_6582.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:20:03.543089
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg', 2), ('/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg', 2), ('/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg', 2), ('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2), ('/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d8550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d8550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:23:03.968251
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg', 2), ('/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg', 2), ('/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg', 2), ('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2), ('/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754593b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754593b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:26:05.871550
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg', 2), ('/home/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg', 2), ('/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg', 2), ('/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg', 2), ('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754be4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754be4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:29:03.353319
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg', 2), ('/home/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg', 2), ('/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg', 2), ('/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg', 2), ('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754653d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754653d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:32:03.030815
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', 2), ('/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg', 2), ('/home/pi/Desktop/images/06042025/05/25/image_06042025_05_25_01_5677.jpg', 2), ('/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg', 2), ('/home/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg', 2), ('/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75500530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75500530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:35:03.929336
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg', 2), ('/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', 2), ('/home/pi/Desktop/images/06042025/05/30/image_06042025_05_30_01_4839.jpg', 2), ('/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg', 2), ('/home/pi/Desktop/images/06042025/05/25/image_06042025_05_25_01_5677.jpg', 2), ('/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bd5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bd5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:38:03.162354
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg', 2), ('/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', 2), ('/home/pi/Desktop/images/06042025/05/30/image_06042025_05_30_01_4839.jpg', 2), ('/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg', 2), ('/home/pi/Desktop/images/06042025/05/25/image_06042025_05_25_01_5677.jpg', 2), ('/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a7610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a7610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:41:03.128074
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/34/image_06042025_05_34_01_9599.jpg', 2), ('/home/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg', 2), ('/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', 2), ('/home/pi/Desktop/images/06042025/05/30/image_06042025_05_30_01_4839.jpg', 2), ('/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg', 2), ('/home/pi/Desktop/images/06042025/05/25/image_06042025_05_25_01_5677.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ca450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ca450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:44:03.163487
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/39/image_06042025_05_39_01_9174.jpg', 2), ('/home/pi/Desktop/images/06042025/05/34/image_06042025_05_34_01_9599.jpg', 2), ('/home/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg', 2), ('/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', 2), ('/home/pi/Desktop/images/06042025/05/30/image_06042025_05_30_01_4839.jpg', 2), ('/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75455430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75455430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:47:03.865052
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/46/image_06042025_05_46_01_9987.jpg', 2), ('/home/pi/Desktop/images/06042025/05/44/image_06042025_05_44_02_2080.jpg', 2), ('/home/pi/Desktop/images/06042025/05/39/image_06042025_05_39_01_9174.jpg', 2), ('/home/pi/Desktop/images/06042025/05/34/image_06042025_05_34_01_9599.jpg', 2), ('/home/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg', 2), ('/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754eb490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754eb490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:50:02.866321
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg', 2), ('/home/pi/Desktop/images/06042025/05/48/image_06042025_05_48_02_1246.jpg', 2), ('/home/pi/Desktop/images/06042025/05/47/image_06042025_05_47_01_2938.jpg', 2), ('/home/pi/Desktop/images/06042025/05/46/image_06042025_05_46_01_9987.jpg', 2), ('/home/pi/Desktop/images/06042025/05/44/image_06042025_05_44_02_2080.jpg', 2), ('/home/pi/Desktop/images/06042025/05/39/image_06042025_05_39_01_9174.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d2450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d2450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:53:03.555237
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2), ('/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg', 2), ('/home/pi/Desktop/images/06042025/05/48/image_06042025_05_48_02_1246.jpg', 2), ('/home/pi/Desktop/images/06042025/05/47/image_06042025_05_47_01_2938.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a9430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a9430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:56:02.815095
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 05:59:03.406453
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2), ('/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg', 2), ('/home/pi/Desktop/images/06042025/05/48/image_06042025_05_48_02_1246.jpg', 2), ('/home/pi/Desktop/images/06042025/05/47/image_06042025_05_47_01_2938.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550d570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550d570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:02:02.711777
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2), ('/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg', 2), ('/home/pi/Desktop/images/06042025/05/48/image_06042025_05_48_02_1246.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754645f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754645f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:05:03.660893
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2), ('/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551e490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551e490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:08:02.741615
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', 2), ('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d5690>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d5690>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:11:03.817857
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', 2), ('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a9470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a9470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:14:03.356181
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', 2), ('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754813d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754813d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:17:03.877550
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', 2), ('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75490450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75490450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:20:03.083949
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', 2), ('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e2470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e2470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:23:03.864220
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/22/image_06042025_06_22_01_9649.jpg', 2), ('/home/pi/Desktop/images/06042025/06/21/image_06042025_06_21_01_7731.jpg', 2), ('/home/pi/Desktop/images/06042025/06/06/image_06042025_06_06_01_8728.jpg', 2), ('/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', 2), ('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550c3f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550c3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:26:06.708814
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg', 2), ('/home/pi/Desktop/images/06042025/06/24/image_06042025_06_24_02_2108.jpg', 2), ('/home/pi/Desktop/images/06042025/06/23/image_06042025_06_23_02_1730.jpg', 2), ('/home/pi/Desktop/images/06042025/06/22/image_06042025_06_22_01_9649.jpg', 2), ('/home/pi/Desktop/images/06042025/06/21/image_06042025_06_21_01_7731.jpg', 2), ('/home/pi/Desktop/images/06042025/06/06/image_06042025_06_06_01_8728.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75521410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75521410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:29:03.982558
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg', 2), ('/home/pi/Desktop/images/06042025/06/24/image_06042025_06_24_02_2108.jpg', 2), ('/home/pi/Desktop/images/06042025/06/23/image_06042025_06_23_02_1730.jpg', 2), ('/home/pi/Desktop/images/06042025/06/22/image_06042025_06_22_01_9649.jpg', 2), ('/home/pi/Desktop/images/06042025/06/21/image_06042025_06_21_01_7731.jpg', 2), ('/home/pi/Desktop/images/06042025/06/06/image_06042025_06_06_01_8728.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f0410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f0410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:32:03.207978
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/26/image_06042025_06_26_01_7816.jpg', 2), ('/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg', 2), ('/home/pi/Desktop/images/06042025/06/24/image_06042025_06_24_02_2108.jpg', 2), ('/home/pi/Desktop/images/06042025/06/23/image_06042025_06_23_02_1730.jpg', 2), ('/home/pi/Desktop/images/06042025/06/22/image_06042025_06_22_01_9649.jpg', 2), ('/home/pi/Desktop/images/06042025/06/21/image_06042025_06_21_01_7731.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7552c3d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7552c3d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:35:03.457358
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/34/image_06042025_06_34_01_9743.jpg', 2), ('/home/pi/Desktop/images/06042025/06/33/image_06042025_06_33_01_8795.jpg', 2), ('/home/pi/Desktop/images/06042025/06/32/image_06042025_06_32_01_5931.jpg', 2), ('/home/pi/Desktop/images/06042025/06/26/image_06042025_06_26_01_7816.jpg', 2), ('/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg', 2), ('/home/pi/Desktop/images/06042025/06/24/image_06042025_06_24_02_2108.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754af4d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754af4d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:38:02.767152
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/35/image_06042025_06_35_01_5383.jpg', 2), ('/home/pi/Desktop/images/06042025/06/34/image_06042025_06_34_01_9743.jpg', 2), ('/home/pi/Desktop/images/06042025/06/33/image_06042025_06_33_01_8795.jpg', 2), ('/home/pi/Desktop/images/06042025/06/32/image_06042025_06_32_01_5931.jpg', 2), ('/home/pi/Desktop/images/06042025/06/26/image_06042025_06_26_01_7816.jpg', 2), ('/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75491630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75491630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:41:03.467532
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/36/image_06042025_06_36_01_5236.jpg', 2), ('/home/pi/Desktop/images/06042025/06/35/image_06042025_06_35_01_5383.jpg', 2), ('/home/pi/Desktop/images/06042025/06/34/image_06042025_06_34_01_9743.jpg', 2), ('/home/pi/Desktop/images/06042025/06/33/image_06042025_06_33_01_8795.jpg', 2), ('/home/pi/Desktop/images/06042025/06/32/image_06042025_06_32_01_5931.jpg', 2), ('/home/pi/Desktop/images/06042025/06/26/image_06042025_06_26_01_7816.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e6470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e6470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:44:02.990163
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/43/image_06042025_06_43_01_5785.jpg', 2), ('/home/pi/Desktop/images/06042025/06/42/image_06042025_06_42_01_7327.jpg', 2), ('/home/pi/Desktop/images/06042025/06/41/image_06042025_06_41_01_8756.jpg', 2), ('/home/pi/Desktop/images/06042025/06/36/image_06042025_06_36_01_5236.jpg', 2), ('/home/pi/Desktop/images/06042025/06/35/image_06042025_06_35_01_5383.jpg', 2), ('/home/pi/Desktop/images/06042025/06/34/image_06042025_06_34_01_9743.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550b450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550b450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:47:02.998994
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2), ('/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg', 2), ('/home/pi/Desktop/images/06042025/06/44/image_06042025_06_44_01_3772.jpg', 2), ('/home/pi/Desktop/images/06042025/06/43/image_06042025_06_43_01_5785.jpg', 2), ('/home/pi/Desktop/images/06042025/06/42/image_06042025_06_42_01_7327.jpg', 2), ('/home/pi/Desktop/images/06042025/06/41/image_06042025_06_41_01_8756.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754763f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754763f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:50:03.326553
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2), ('/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg', 2), ('/home/pi/Desktop/images/06042025/06/44/image_06042025_06_44_01_3772.jpg', 2), ('/home/pi/Desktop/images/06042025/06/43/image_06042025_06_43_01_5785.jpg', 2), ('/home/pi/Desktop/images/06042025/06/42/image_06042025_06_42_01_7327.jpg', 2), ('/home/pi/Desktop/images/06042025/06/41/image_06042025_06_41_01_8756.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75527450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75527450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:53:03.162727
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2), ('/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg', 2), ('/home/pi/Desktop/images/06042025/06/44/image_06042025_06_44_01_3772.jpg', 2), ('/home/pi/Desktop/images/06042025/06/43/image_06042025_06_43_01_5785.jpg', 2), ('/home/pi/Desktop/images/06042025/06/42/image_06042025_06_42_01_7327.jpg', 2), ('/home/pi/Desktop/images/06042025/06/41/image_06042025_06_41_01_8756.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e5490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e5490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:56:02.995505
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 06:59:03.721835
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', 2), ('/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg', 2), ('/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg', 2), ('/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg', 2), ('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2), ('/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ea470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ea470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:02:03.013055
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', 2), ('/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg', 2), ('/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg', 2), ('/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg', 2), ('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2), ('/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d6410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d6410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:05:03.783353
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', 2), ('/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg', 2), ('/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg', 2), ('/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg', 2), ('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2), ('/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75463590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75463590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:08:03.296405
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/06/59/image_06042025_06_59_01_9622.jpg', 2), ('/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', 2), ('/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg', 2), ('/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg', 2), ('/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg', 2), ('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7544a430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7544a430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:11:03.941276
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/06/image_06042025_07_06_01_9787.jpg', 2), ('/home/pi/Desktop/images/06042025/06/59/image_06042025_06_59_01_9622.jpg', 2), ('/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', 2), ('/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg', 2), ('/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg', 2), ('/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f5510>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f5510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:14:03.191807
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg', 2), ('/home/pi/Desktop/images/06042025/07/11/image_06042025_07_11_01_4156.jpg', 2), ('/home/pi/Desktop/images/06042025/07/10/image_06042025_07_10_02_0522.jpg', 2), ('/home/pi/Desktop/images/06042025/07/06/image_06042025_07_06_01_9787.jpg', 2), ('/home/pi/Desktop/images/06042025/06/59/image_06042025_06_59_01_9622.jpg', 2), ('/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549f4f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549f4f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:17:04.080269
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/15/image_06042025_07_15_01_7589.jpg', 2), ('/home/pi/Desktop/images/06042025/07/14/image_06042025_07_14_01_4858.jpg', 2), ('/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg', 2), ('/home/pi/Desktop/images/06042025/07/11/image_06042025_07_11_01_4156.jpg', 2), ('/home/pi/Desktop/images/06042025/07/10/image_06042025_07_10_02_0522.jpg', 2), ('/home/pi/Desktop/images/06042025/07/06/image_06042025_07_06_01_9787.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754575d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754575d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:20:03.244279
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/16/image_06042025_07_16_01_9283.jpg', 2), ('/home/pi/Desktop/images/06042025/07/15/image_06042025_07_15_01_7589.jpg', 2), ('/home/pi/Desktop/images/06042025/07/14/image_06042025_07_14_01_4858.jpg', 2), ('/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg', 2), ('/home/pi/Desktop/images/06042025/07/11/image_06042025_07_11_01_4156.jpg', 2), ('/home/pi/Desktop/images/06042025/07/10/image_06042025_07_10_02_0522.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b1510>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b1510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:23:03.099818
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/19/image_06042025_07_19_01_7874.jpg', 2), ('/home/pi/Desktop/images/06042025/07/16/image_06042025_07_16_01_9283.jpg', 2), ('/home/pi/Desktop/images/06042025/07/15/image_06042025_07_15_01_7589.jpg', 2), ('/home/pi/Desktop/images/06042025/07/14/image_06042025_07_14_01_4858.jpg', 2), ('/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg', 2), ('/home/pi/Desktop/images/06042025/07/11/image_06042025_07_11_01_4156.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754455d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754455d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:26:06.424408
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/21/image_06042025_07_21_01_9830.jpg', 2), ('/home/pi/Desktop/images/06042025/07/19/image_06042025_07_19_01_7874.jpg', 2), ('/home/pi/Desktop/images/06042025/07/16/image_06042025_07_16_01_9283.jpg', 2), ('/home/pi/Desktop/images/06042025/07/15/image_06042025_07_15_01_7589.jpg', 2), ('/home/pi/Desktop/images/06042025/07/14/image_06042025_07_14_01_4858.jpg', 2), ('/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754cd450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754cd450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:29:03.506939
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/28/image_06042025_07_28_02_2124.jpg', 2), ('/home/pi/Desktop/images/06042025/07/27/image_06042025_07_27_02_2066.jpg', 2), ('/home/pi/Desktop/images/06042025/07/26/image_06042025_07_26_01_7987.jpg', 2), ('/home/pi/Desktop/images/06042025/07/21/image_06042025_07_21_01_9830.jpg', 2), ('/home/pi/Desktop/images/06042025/07/19/image_06042025_07_19_01_7874.jpg', 2), ('/home/pi/Desktop/images/06042025/07/16/image_06042025_07_16_01_9283.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75523450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75523450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:32:03.577932
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/31/image_06042025_07_31_02_0805.jpg', 2), ('/home/pi/Desktop/images/06042025/07/29/image_06042025_07_29_01_7109.jpg', 2), ('/home/pi/Desktop/images/06042025/07/28/image_06042025_07_28_02_2124.jpg', 2), ('/home/pi/Desktop/images/06042025/07/27/image_06042025_07_27_02_2066.jpg', 2), ('/home/pi/Desktop/images/06042025/07/26/image_06042025_07_26_01_7987.jpg', 2), ('/home/pi/Desktop/images/06042025/07/21/image_06042025_07_21_01_9830.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755175d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755175d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:35:03.360354
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/32/image_06042025_07_32_01_9995.jpg', 2), ('/home/pi/Desktop/images/06042025/07/31/image_06042025_07_31_02_0805.jpg', 2), ('/home/pi/Desktop/images/06042025/07/29/image_06042025_07_29_01_7109.jpg', 2), ('/home/pi/Desktop/images/06042025/07/28/image_06042025_07_28_02_2124.jpg', 2), ('/home/pi/Desktop/images/06042025/07/27/image_06042025_07_27_02_2066.jpg', 2), ('/home/pi/Desktop/images/06042025/07/26/image_06042025_07_26_01_7987.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545c510>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545c510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:38:02.683664
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/33/image_06042025_07_33_02_1587.jpg', 2), ('/home/pi/Desktop/images/06042025/07/32/image_06042025_07_32_01_9995.jpg', 2), ('/home/pi/Desktop/images/06042025/07/31/image_06042025_07_31_02_0805.jpg', 2), ('/home/pi/Desktop/images/06042025/07/29/image_06042025_07_29_01_7109.jpg', 2), ('/home/pi/Desktop/images/06042025/07/28/image_06042025_07_28_02_2124.jpg', 2), ('/home/pi/Desktop/images/06042025/07/27/image_06042025_07_27_02_2066.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545f5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545f5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:41:03.084553
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/39/image_06042025_07_39_01_2934.jpg', 2), ('/home/pi/Desktop/images/06042025/07/36/image_06042025_07_36_01_8180.jpg', 2), ('/home/pi/Desktop/images/06042025/07/33/image_06042025_07_33_02_1587.jpg', 2), ('/home/pi/Desktop/images/06042025/07/32/image_06042025_07_32_01_9995.jpg', 2), ('/home/pi/Desktop/images/06042025/07/31/image_06042025_07_31_02_0805.jpg', 2), ('/home/pi/Desktop/images/06042025/07/29/image_06042025_07_29_01_7109.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543f490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543f490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:44:02.665269
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/42/image_06042025_07_42_01_4625.jpg', 2), ('/home/pi/Desktop/images/06042025/07/41/image_06042025_07_41_01_3015.jpg', 2), ('/home/pi/Desktop/images/06042025/07/39/image_06042025_07_39_01_2934.jpg', 2), ('/home/pi/Desktop/images/06042025/07/36/image_06042025_07_36_01_8180.jpg', 2), ('/home/pi/Desktop/images/06042025/07/33/image_06042025_07_33_02_1587.jpg', 2), ('/home/pi/Desktop/images/06042025/07/32/image_06042025_07_32_01_9995.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e9470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e9470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:47:03.571266
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/46/image_06042025_07_46_01_3545.jpg', 2), ('/home/pi/Desktop/images/06042025/07/45/image_06042025_07_45_01_3535.jpg', 2), ('/home/pi/Desktop/images/06042025/07/43/image_06042025_07_43_01_7933.jpg', 2), ('/home/pi/Desktop/images/06042025/07/42/image_06042025_07_42_01_4625.jpg', 2), ('/home/pi/Desktop/images/06042025/07/41/image_06042025_07_41_01_3015.jpg', 2), ('/home/pi/Desktop/images/06042025/07/39/image_06042025_07_39_01_2934.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551d490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551d490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:50:03.117094
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/47/image_06042025_07_47_01_7355.jpg', 2), ('/home/pi/Desktop/images/06042025/07/46/image_06042025_07_46_01_3545.jpg', 2), ('/home/pi/Desktop/images/06042025/07/45/image_06042025_07_45_01_3535.jpg', 2), ('/home/pi/Desktop/images/06042025/07/43/image_06042025_07_43_01_7933.jpg', 2), ('/home/pi/Desktop/images/06042025/07/42/image_06042025_07_42_01_4625.jpg', 2), ('/home/pi/Desktop/images/06042025/07/41/image_06042025_07_41_01_3015.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75488450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75488450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:53:04.015921
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/48/image_06042025_07_48_01_7353.jpg', 2), ('/home/pi/Desktop/images/06042025/07/47/image_06042025_07_47_01_7355.jpg', 2), ('/home/pi/Desktop/images/06042025/07/46/image_06042025_07_46_01_3545.jpg', 2), ('/home/pi/Desktop/images/06042025/07/45/image_06042025_07_45_01_3535.jpg', 2), ('/home/pi/Desktop/images/06042025/07/43/image_06042025_07_43_01_7933.jpg', 2), ('/home/pi/Desktop/images/06042025/07/42/image_06042025_07_42_01_4625.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75528570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75528570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:56:02.998977
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 07:59:03.710309
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/07/58/image_06042025_07_58_01_8643.jpg', 2), ('/home/pi/Desktop/images/06042025/07/57/image_06042025_07_57_01_6772.jpg', 2), ('/home/pi/Desktop/images/06042025/07/56/image_06042025_07_56_01_4460.jpg', 2), ('/home/pi/Desktop/images/06042025/07/55/image_06042025_07_55_01_5872.jpg', 2), ('/home/pi/Desktop/images/06042025/07/54/image_06042025_07_54_02_2231.jpg', 2), ('/home/pi/Desktop/images/06042025/07/53/image_06042025_07_53_02_2121.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7547a450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7547a450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:02:03.200906
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/01/image_06042025_08_01_01_4033.jpg', 2), ('/home/pi/Desktop/images/06042025/07/59/image_06042025_07_59_02_0529.jpg', 2), ('/home/pi/Desktop/images/06042025/07/58/image_06042025_07_58_01_8643.jpg', 2), ('/home/pi/Desktop/images/06042025/07/57/image_06042025_07_57_01_6772.jpg', 2), ('/home/pi/Desktop/images/06042025/07/56/image_06042025_07_56_01_4460.jpg', 2), ('/home/pi/Desktop/images/06042025/07/55/image_06042025_07_55_01_5872.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754dc5d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754dc5d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:05:03.324637
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/02/image_06042025_08_02_01_6641.jpg', 2), ('/home/pi/Desktop/images/06042025/08/01/image_06042025_08_01_01_4033.jpg', 2), ('/home/pi/Desktop/images/06042025/07/59/image_06042025_07_59_02_0529.jpg', 2), ('/home/pi/Desktop/images/06042025/07/58/image_06042025_07_58_01_8643.jpg', 2), ('/home/pi/Desktop/images/06042025/07/57/image_06042025_07_57_01_6772.jpg', 2), ('/home/pi/Desktop/images/06042025/07/56/image_06042025_07_56_01_4460.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754753f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754753f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:08:03.106092
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/07/image_06042025_08_07_01_4715.jpg', 2), ('/home/pi/Desktop/images/06042025/08/05/image_06042025_08_05_01_2932.jpg', 2), ('/home/pi/Desktop/images/06042025/08/03/image_06042025_08_03_01_8442.jpg', 2), ('/home/pi/Desktop/images/06042025/08/02/image_06042025_08_02_01_6641.jpg', 2), ('/home/pi/Desktop/images/06042025/08/01/image_06042025_08_01_01_4033.jpg', 2), ('/home/pi/Desktop/images/06042025/07/59/image_06042025_07_59_02_0529.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754643f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754643f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:11:03.892233
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/09/image_06042025_08_09_01_7450.jpg', 2), ('/home/pi/Desktop/images/06042025/08/08/image_06042025_08_08_01_3862.jpg', 2), ('/home/pi/Desktop/images/06042025/08/07/image_06042025_08_07_01_4715.jpg', 2), ('/home/pi/Desktop/images/06042025/08/05/image_06042025_08_05_01_2932.jpg', 2), ('/home/pi/Desktop/images/06042025/08/03/image_06042025_08_03_01_8442.jpg', 2), ('/home/pi/Desktop/images/06042025/08/02/image_06042025_08_02_01_6641.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75535470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75535470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:14:03.267888
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/12/image_06042025_08_12_01_9989.jpg', 2), ('/home/pi/Desktop/images/06042025/08/10/image_06042025_08_10_01_8383.jpg', 2), ('/home/pi/Desktop/images/06042025/08/09/image_06042025_08_09_01_7450.jpg', 2), ('/home/pi/Desktop/images/06042025/08/08/image_06042025_08_08_01_3862.jpg', 2), ('/home/pi/Desktop/images/06042025/08/07/image_06042025_08_07_01_4715.jpg', 2), ('/home/pi/Desktop/images/06042025/08/05/image_06042025_08_05_01_2932.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d4650>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d4650>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:17:03.188462
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/12/image_06042025_08_12_01_9989.jpg', 2), ('/home/pi/Desktop/images/06042025/08/10/image_06042025_08_10_01_8383.jpg', 2), ('/home/pi/Desktop/images/06042025/08/09/image_06042025_08_09_01_7450.jpg', 2), ('/home/pi/Desktop/images/06042025/08/08/image_06042025_08_08_01_3862.jpg', 2), ('/home/pi/Desktop/images/06042025/08/07/image_06042025_08_07_01_4715.jpg', 2), ('/home/pi/Desktop/images/06042025/08/05/image_06042025_08_05_01_2932.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75504450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75504450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:20:03.219151
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', 2), ('/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg', 2), ('/home/pi/Desktop/images/06042025/08/14/image_06042025_08_14_01_5694.jpg', 2), ('/home/pi/Desktop/images/06042025/08/12/image_06042025_08_12_01_9989.jpg', 2), ('/home/pi/Desktop/images/06042025/08/10/image_06042025_08_10_01_8383.jpg', 2), ('/home/pi/Desktop/images/06042025/08/09/image_06042025_08_09_01_7450.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e54f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e54f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:23:03.917426
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', 2), ('/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', 2), ('/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', 2), ('/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg', 2), ('/home/pi/Desktop/images/06042025/08/14/image_06042025_08_14_01_5694.jpg', 2), ('/home/pi/Desktop/images/06042025/08/12/image_06042025_08_12_01_9989.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d8690>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d8690>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:26:04.220456
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', 2), ('/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', 2), ('/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', 2), ('/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', 2), ('/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg', 2), ('/home/pi/Desktop/images/06042025/08/14/image_06042025_08_14_01_5694.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7544b450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7544b450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:29:03.814433
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', 2), ('/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', 2), ('/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', 2), ('/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', 2), ('/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg', 2), ('/home/pi/Desktop/images/06042025/08/14/image_06042025_08_14_01_5694.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75447470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75447470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:32:02.773178
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/30/image_06042025_08_30_01_8783.jpg', 2), ('/home/pi/Desktop/images/06042025/08/26/image_06042025_08_26_01_3776.jpg', 2), ('/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', 2), ('/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', 2), ('/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', 2), ('/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75485590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75485590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:35:03.148340
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/32/image_06042025_08_32_01_3519.jpg', 2), ('/home/pi/Desktop/images/06042025/08/30/image_06042025_08_30_01_8783.jpg', 2), ('/home/pi/Desktop/images/06042025/08/26/image_06042025_08_26_01_3776.jpg', 2), ('/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', 2), ('/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', 2), ('/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7552b430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7552b430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:38:03.444617
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/36/image_06042025_08_36_01_2660.jpg', 2), ('/home/pi/Desktop/images/06042025/08/34/image_06042025_08_34_01_4780.jpg', 2), ('/home/pi/Desktop/images/06042025/08/32/image_06042025_08_32_01_3519.jpg', 2), ('/home/pi/Desktop/images/06042025/08/30/image_06042025_08_30_01_8783.jpg', 2), ('/home/pi/Desktop/images/06042025/08/26/image_06042025_08_26_01_3776.jpg', 2), ('/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e0470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e0470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:41:03.234083
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/37/image_06042025_08_37_01_6615.jpg', 2), ('/home/pi/Desktop/images/06042025/08/36/image_06042025_08_36_01_2660.jpg', 2), ('/home/pi/Desktop/images/06042025/08/34/image_06042025_08_34_01_4780.jpg', 2), ('/home/pi/Desktop/images/06042025/08/32/image_06042025_08_32_01_3519.jpg', 2), ('/home/pi/Desktop/images/06042025/08/30/image_06042025_08_30_01_8783.jpg', 2), ('/home/pi/Desktop/images/06042025/08/26/image_06042025_08_26_01_3776.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f5590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f5590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:44:03.096380
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/42/image_06042025_08_42_01_5007.jpg', 2), ('/home/pi/Desktop/images/06042025/08/41/image_06042025_08_41_01_3770.jpg', 2), ('/home/pi/Desktop/images/06042025/08/40/image_06042025_08_40_02_0936.jpg', 2), ('/home/pi/Desktop/images/06042025/08/37/image_06042025_08_37_01_6615.jpg', 2), ('/home/pi/Desktop/images/06042025/08/36/image_06042025_08_36_01_2660.jpg', 2), ('/home/pi/Desktop/images/06042025/08/34/image_06042025_08_34_01_4780.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c2410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c2410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:47:03.758132
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/45/image_06042025_08_45_01_6452.jpg', 2), ('/home/pi/Desktop/images/06042025/08/43/image_06042025_08_43_01_4323.jpg', 2), ('/home/pi/Desktop/images/06042025/08/42/image_06042025_08_42_01_5007.jpg', 2), ('/home/pi/Desktop/images/06042025/08/41/image_06042025_08_41_01_3770.jpg', 2), ('/home/pi/Desktop/images/06042025/08/40/image_06042025_08_40_02_0936.jpg', 2), ('/home/pi/Desktop/images/06042025/08/37/image_06042025_08_37_01_6615.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543b430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543b430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:50:02.756041
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg', 2), ('/home/pi/Desktop/images/06042025/08/49/image_06042025_08_49_02_0045.jpg', 2), ('/home/pi/Desktop/images/06042025/08/48/image_06042025_08_48_02_0463.jpg', 2), ('/home/pi/Desktop/images/06042025/08/46/image_06042025_08_46_01_8288.jpg', 2), ('/home/pi/Desktop/images/06042025/08/45/image_06042025_08_45_01_6452.jpg', 2), ('/home/pi/Desktop/images/06042025/08/43/image_06042025_08_43_01_4323.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    image = Image.open(imagename)
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2687, in open
    % (filename if filename else fp))
OSError: cannot identify image file '/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e9190>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e9190>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:53:03.047347
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg', 2), ('/home/pi/Desktop/images/06042025/08/50/image_06042025_08_50_02_1589.jpg', 2), ('/home/pi/Desktop/images/06042025/08/49/image_06042025_08_49_02_0045.jpg', 2), ('/home/pi/Desktop/images/06042025/08/48/image_06042025_08_48_02_0463.jpg', 2), ('/home/pi/Desktop/images/06042025/08/46/image_06042025_08_46_01_8288.jpg', 2), ('/home/pi/Desktop/images/06042025/08/45/image_06042025_08_45_01_6452.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a85d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a85d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:56:03.142336
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 08:59:03.690802
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/58/image_06042025_08_58_01_7513.jpg', 2), ('/home/pi/Desktop/images/06042025/08/57/image_06042025_08_57_01_7910.jpg', 2), ('/home/pi/Desktop/images/06042025/08/52/image_06042025_08_52_01_6281.jpg', 2), ('/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg', 2), ('/home/pi/Desktop/images/06042025/08/50/image_06042025_08_50_02_1589.jpg', 2), ('/home/pi/Desktop/images/06042025/08/49/image_06042025_08_49_02_0045.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e84b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e84b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:02:03.147671
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/08/59/image_06042025_08_59_01_9171.jpg', 2), ('/home/pi/Desktop/images/06042025/08/58/image_06042025_08_58_01_7513.jpg', 2), ('/home/pi/Desktop/images/06042025/08/57/image_06042025_08_57_01_7910.jpg', 2), ('/home/pi/Desktop/images/06042025/08/52/image_06042025_08_52_01_6281.jpg', 2), ('/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg', 2), ('/home/pi/Desktop/images/06042025/08/50/image_06042025_08_50_02_1589.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c3410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c3410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:05:03.773527
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/00/image_06042025_09_00_01_9224.jpg', 2), ('/home/pi/Desktop/images/06042025/08/59/image_06042025_08_59_01_9171.jpg', 2), ('/home/pi/Desktop/images/06042025/08/58/image_06042025_08_58_01_7513.jpg', 2), ('/home/pi/Desktop/images/06042025/08/57/image_06042025_08_57_01_7910.jpg', 2), ('/home/pi/Desktop/images/06042025/08/52/image_06042025_08_52_01_6281.jpg', 2), ('/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755054f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755054f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:08:02.854597
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/07/image_06042025_09_07_01_4056.jpg', 2), ('/home/pi/Desktop/images/06042025/09/06/image_06042025_09_06_02_0635.jpg', 2), ('/home/pi/Desktop/images/06042025/09/05/image_06042025_09_05_02_0653.jpg', 2), ('/home/pi/Desktop/images/06042025/09/00/image_06042025_09_00_01_9224.jpg', 2), ('/home/pi/Desktop/images/06042025/08/59/image_06042025_08_59_01_9171.jpg', 2), ('/home/pi/Desktop/images/06042025/08/58/image_06042025_08_58_01_7513.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ce570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ce570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:11:03.069979
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/10/image_06042025_09_10_01_6592.jpg', 2), ('/home/pi/Desktop/images/06042025/09/09/image_06042025_09_09_01_5657.jpg', 2), ('/home/pi/Desktop/images/06042025/09/08/image_06042025_09_08_01_7295.jpg', 2), ('/home/pi/Desktop/images/06042025/09/07/image_06042025_09_07_01_4056.jpg', 2), ('/home/pi/Desktop/images/06042025/09/06/image_06042025_09_06_02_0635.jpg', 2), ('/home/pi/Desktop/images/06042025/09/05/image_06042025_09_05_02_0653.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b5490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b5490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:14:03.373263
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/12/image_06042025_09_12_01_4023.jpg', 2), ('/home/pi/Desktop/images/06042025/09/11/image_06042025_09_11_01_4623.jpg', 2), ('/home/pi/Desktop/images/06042025/09/10/image_06042025_09_10_01_6592.jpg', 2), ('/home/pi/Desktop/images/06042025/09/09/image_06042025_09_09_01_5657.jpg', 2), ('/home/pi/Desktop/images/06042025/09/08/image_06042025_09_08_01_7295.jpg', 2), ('/home/pi/Desktop/images/06042025/09/07/image_06042025_09_07_01_4056.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550b5d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550b5d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:17:04.063498
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', 2), ('/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg', 2), ('/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg', 2), ('/home/pi/Desktop/images/06042025/09/12/image_06042025_09_12_01_4023.jpg', 2), ('/home/pi/Desktop/images/06042025/09/11/image_06042025_09_11_01_4623.jpg', 2), ('/home/pi/Desktop/images/06042025/09/10/image_06042025_09_10_01_6592.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754865d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754865d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:20:03.018579
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2), ('/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', 2), ('/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', 2), ('/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg', 2), ('/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg', 2), ('/home/pi/Desktop/images/06042025/09/12/image_06042025_09_12_01_4023.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fb590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fb590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:23:03.753358
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2), ('/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2), ('/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', 2), ('/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', 2), ('/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75448570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75448570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:26:06.652442
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2), ('/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2), ('/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', 2), ('/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551c490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551c490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:29:03.351737
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2), ('/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2), ('/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2), ('/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d4470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d4470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:32:03.124532
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2), ('/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2), ('/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2), ('/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:35:03.759914
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', 2), ('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2), ('/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2), ('/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754da490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754da490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:38:03.045040
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', 2), ('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2), ('/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2), ('/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b8470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b8470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:41:03.009628
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg', 2), ('/home/pi/Desktop/images/06042025/09/33/image_06042025_09_33_01_8512.jpg', 2), ('/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', 2), ('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2), ('/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b9650>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b9650>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:44:03.365021
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/42/image_06042025_09_42_01_2574.jpg', 2), ('/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg', 2), ('/home/pi/Desktop/images/06042025/09/40/image_06042025_09_40_01_7264.jpg', 2), ('/home/pi/Desktop/images/06042025/09/33/image_06042025_09_33_01_8512.jpg', 2), ('/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', 2), ('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75461550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75461550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:47:03.418808
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/42/image_06042025_09_42_01_2574.jpg', 2), ('/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg', 2), ('/home/pi/Desktop/images/06042025/09/40/image_06042025_09_40_01_7264.jpg', 2), ('/home/pi/Desktop/images/06042025/09/33/image_06042025_09_33_01_8512.jpg', 2), ('/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', 2), ('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7552f610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7552f610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:50:02.690225
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/43/image_06042025_09_43_01_8221.jpg', 2), ('/home/pi/Desktop/images/06042025/09/42/image_06042025_09_42_01_2574.jpg', 2), ('/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg', 2), ('/home/pi/Desktop/images/06042025/09/40/image_06042025_09_40_01_7264.jpg', 2), ('/home/pi/Desktop/images/06042025/09/33/image_06042025_09_33_01_8512.jpg', 2), ('/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b9470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b9470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:53:03.865553
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/51/image_06042025_09_51_01_3212.jpg', 2), ('/home/pi/Desktop/images/06042025/09/50/image_06042025_09_50_02_0284.jpg', 2), ('/home/pi/Desktop/images/06042025/09/43/image_06042025_09_43_01_8221.jpg', 2), ('/home/pi/Desktop/images/06042025/09/42/image_06042025_09_42_01_2574.jpg', 2), ('/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg', 2), ('/home/pi/Desktop/images/06042025/09/40/image_06042025_09_40_01_7264.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75452450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75452450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:56:03.071372
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 09:59:03.693785
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/57/image_06042025_09_57_01_6691.jpg', 2), ('/home/pi/Desktop/images/06042025/09/56/image_06042025_09_56_01_5089.jpg', 2), ('/home/pi/Desktop/images/06042025/09/55/image_06042025_09_55_01_5672.jpg', 2), ('/home/pi/Desktop/images/06042025/09/54/image_06042025_09_54_02_1288.jpg', 2), ('/home/pi/Desktop/images/06042025/09/53/image_06042025_09_53_02_1699.jpg', 2), ('/home/pi/Desktop/images/06042025/09/51/image_06042025_09_51_01_3212.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754643f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754643f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:02:03.165976
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/09/59/image_06042025_09_59_02_1084.jpg', 2), ('/home/pi/Desktop/images/06042025/09/57/image_06042025_09_57_01_6691.jpg', 2), ('/home/pi/Desktop/images/06042025/09/56/image_06042025_09_56_01_5089.jpg', 2), ('/home/pi/Desktop/images/06042025/09/55/image_06042025_09_55_01_5672.jpg', 2), ('/home/pi/Desktop/images/06042025/09/54/image_06042025_09_54_02_1288.jpg', 2), ('/home/pi/Desktop/images/06042025/09/53/image_06042025_09_53_02_1699.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75493450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75493450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:05:03.446181
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/03/image_06042025_10_03_01_8134.jpg', 2), ('/home/pi/Desktop/images/06042025/10/01/image_06042025_10_01_01_6524.jpg', 2), ('/home/pi/Desktop/images/06042025/09/59/image_06042025_09_59_02_1084.jpg', 2), ('/home/pi/Desktop/images/06042025/09/57/image_06042025_09_57_01_6691.jpg', 2), ('/home/pi/Desktop/images/06042025/09/56/image_06042025_09_56_01_5089.jpg', 2), ('/home/pi/Desktop/images/06042025/09/55/image_06042025_09_55_01_5672.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551d570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551d570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:08:02.942421
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/03/image_06042025_10_03_01_8134.jpg', 2), ('/home/pi/Desktop/images/06042025/10/01/image_06042025_10_01_01_6524.jpg', 2), ('/home/pi/Desktop/images/06042025/09/59/image_06042025_09_59_02_1084.jpg', 2), ('/home/pi/Desktop/images/06042025/09/57/image_06042025_09_57_01_6691.jpg', 2), ('/home/pi/Desktop/images/06042025/09/56/image_06042025_09_56_01_5089.jpg', 2), ('/home/pi/Desktop/images/06042025/09/55/image_06042025_09_55_01_5672.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75483590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75483590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:11:03.979432
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/10/image_06042025_10_10_01_6012.jpg', 2), ('/home/pi/Desktop/images/06042025/10/09/image_06042025_10_09_01_5587.jpg', 2), ('/home/pi/Desktop/images/06042025/10/04/image_06042025_10_04_02_1694.jpg', 2), ('/home/pi/Desktop/images/06042025/10/03/image_06042025_10_03_01_8134.jpg', 2), ('/home/pi/Desktop/images/06042025/10/01/image_06042025_10_01_01_6524.jpg', 2), ('/home/pi/Desktop/images/06042025/09/59/image_06042025_09_59_02_1084.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7546f5d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7546f5d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:14:02.937977
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/11/image_06042025_10_11_01_9232.jpg', 2), ('/home/pi/Desktop/images/06042025/10/10/image_06042025_10_10_01_6012.jpg', 2), ('/home/pi/Desktop/images/06042025/10/09/image_06042025_10_09_01_5587.jpg', 2), ('/home/pi/Desktop/images/06042025/10/04/image_06042025_10_04_02_1694.jpg', 2), ('/home/pi/Desktop/images/06042025/10/03/image_06042025_10_03_01_8134.jpg', 2), ('/home/pi/Desktop/images/06042025/10/01/image_06042025_10_01_01_6524.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551d430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551d430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:17:03.626047
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/15/image_06042025_10_15_01_5782.jpg', 2), ('/home/pi/Desktop/images/06042025/10/14/image_06042025_10_14_01_4681.jpg', 2), ('/home/pi/Desktop/images/06042025/10/11/image_06042025_10_11_01_9232.jpg', 2), ('/home/pi/Desktop/images/06042025/10/10/image_06042025_10_10_01_6012.jpg', 2), ('/home/pi/Desktop/images/06042025/10/09/image_06042025_10_09_01_5587.jpg', 2), ('/home/pi/Desktop/images/06042025/10/04/image_06042025_10_04_02_1694.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755225d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755225d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:20:02.604301
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/16/image_06042025_10_16_01_5626.jpg', 2), ('/home/pi/Desktop/images/06042025/10/15/image_06042025_10_15_01_5782.jpg', 2), ('/home/pi/Desktop/images/06042025/10/14/image_06042025_10_14_01_4681.jpg', 2), ('/home/pi/Desktop/images/06042025/10/11/image_06042025_10_11_01_9232.jpg', 2), ('/home/pi/Desktop/images/06042025/10/10/image_06042025_10_10_01_6012.jpg', 2), ('/home/pi/Desktop/images/06042025/10/09/image_06042025_10_09_01_5587.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d14b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d14b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:23:03.768297
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/21/image_06042025_10_21_01_1930.jpg', 2), ('/home/pi/Desktop/images/06042025/10/19/image_06042025_10_19_02_1535.jpg', 2), ('/home/pi/Desktop/images/06042025/10/16/image_06042025_10_16_01_5626.jpg', 2), ('/home/pi/Desktop/images/06042025/10/15/image_06042025_10_15_01_5782.jpg', 2), ('/home/pi/Desktop/images/06042025/10/14/image_06042025_10_14_01_4681.jpg', 2), ('/home/pi/Desktop/images/06042025/10/11/image_06042025_10_11_01_9232.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75497610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75497610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:26:05.546053
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/25/image_06042025_10_25_01_4381.jpg', 2), ('/home/pi/Desktop/images/06042025/10/24/image_06042025_10_24_02_0686.jpg', 2), ('/home/pi/Desktop/images/06042025/10/22/image_06042025_10_22_01_5100.jpg', 2), ('/home/pi/Desktop/images/06042025/10/21/image_06042025_10_21_01_1930.jpg', 2), ('/home/pi/Desktop/images/06042025/10/19/image_06042025_10_19_02_1535.jpg', 2), ('/home/pi/Desktop/images/06042025/10/16/image_06042025_10_16_01_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fe570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fe570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:29:03.660803
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/28/image_06042025_10_28_02_1499.jpg', 2), ('/home/pi/Desktop/images/06042025/10/26/image_06042025_10_26_01_6789.jpg', 2), ('/home/pi/Desktop/images/06042025/10/25/image_06042025_10_25_01_4381.jpg', 2), ('/home/pi/Desktop/images/06042025/10/24/image_06042025_10_24_02_0686.jpg', 2), ('/home/pi/Desktop/images/06042025/10/22/image_06042025_10_22_01_5100.jpg', 2), ('/home/pi/Desktop/images/06042025/10/21/image_06042025_10_21_01_1930.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549a5f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549a5f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:32:03.015417
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/31/image_06042025_10_31_01_2807.jpg', 2), ('/home/pi/Desktop/images/06042025/10/30/image_06042025_10_30_01_8352.jpg', 2), ('/home/pi/Desktop/images/06042025/10/29/image_06042025_10_29_01_7962.jpg', 2), ('/home/pi/Desktop/images/06042025/10/28/image_06042025_10_28_02_1499.jpg', 2), ('/home/pi/Desktop/images/06042025/10/26/image_06042025_10_26_01_6789.jpg', 2), ('/home/pi/Desktop/images/06042025/10/25/image_06042025_10_25_01_4381.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fd470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fd470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:35:03.613406
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg', 2), ('/home/pi/Desktop/images/06042025/10/33/image_06042025_10_33_01_6127.jpg', 2), ('/home/pi/Desktop/images/06042025/10/32/image_06042025_10_32_01_6099.jpg', 2), ('/home/pi/Desktop/images/06042025/10/31/image_06042025_10_31_01_2807.jpg', 2), ('/home/pi/Desktop/images/06042025/10/30/image_06042025_10_30_01_8352.jpg', 2), ('/home/pi/Desktop/images/06042025/10/29/image_06042025_10_29_01_7962.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754aa3f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754aa3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:38:03.190660
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/35/image_06042025_10_35_02_0094.jpg', 2), ('/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg', 2), ('/home/pi/Desktop/images/06042025/10/33/image_06042025_10_33_01_6127.jpg', 2), ('/home/pi/Desktop/images/06042025/10/32/image_06042025_10_32_01_6099.jpg', 2), ('/home/pi/Desktop/images/06042025/10/31/image_06042025_10_31_01_2807.jpg', 2), ('/home/pi/Desktop/images/06042025/10/30/image_06042025_10_30_01_8352.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75446590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75446590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:41:03.648938
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/40/image_06042025_10_40_01_8410.jpg', 2), ('/home/pi/Desktop/images/06042025/10/39/image_06042025_10_39_01_7834.jpg', 2), ('/home/pi/Desktop/images/06042025/10/37/image_06042025_10_37_02_0544.jpg', 2), ('/home/pi/Desktop/images/06042025/10/35/image_06042025_10_35_02_0094.jpg', 2), ('/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg', 2), ('/home/pi/Desktop/images/06042025/10/33/image_06042025_10_33_01_6127.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551d5d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551d5d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:44:03.096800
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/41/image_06042025_10_41_01_9435.jpg', 2), ('/home/pi/Desktop/images/06042025/10/40/image_06042025_10_40_01_8410.jpg', 2), ('/home/pi/Desktop/images/06042025/10/39/image_06042025_10_39_01_7834.jpg', 2), ('/home/pi/Desktop/images/06042025/10/37/image_06042025_10_37_02_0544.jpg', 2), ('/home/pi/Desktop/images/06042025/10/35/image_06042025_10_35_02_0094.jpg', 2), ('/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c6670>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c6670>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:47:03.527065
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/41/image_06042025_10_41_01_9435.jpg', 2), ('/home/pi/Desktop/images/06042025/10/40/image_06042025_10_40_01_8410.jpg', 2), ('/home/pi/Desktop/images/06042025/10/39/image_06042025_10_39_01_7834.jpg', 2), ('/home/pi/Desktop/images/06042025/10/37/image_06042025_10_37_02_0544.jpg', 2), ('/home/pi/Desktop/images/06042025/10/35/image_06042025_10_35_02_0094.jpg', 2), ('/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75465490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75465490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:50:02.734382
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/48/image_06042025_10_48_01_8647.jpg', 2), ('/home/pi/Desktop/images/06042025/10/42/image_06042025_10_42_01_8050.jpg', 2), ('/home/pi/Desktop/images/06042025/10/41/image_06042025_10_41_01_9435.jpg', 2), ('/home/pi/Desktop/images/06042025/10/40/image_06042025_10_40_01_8410.jpg', 2), ('/home/pi/Desktop/images/06042025/10/39/image_06042025_10_39_01_7834.jpg', 2), ('/home/pi/Desktop/images/06042025/10/37/image_06042025_10_37_02_0544.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75464650>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75464650>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:53:03.416465
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/52/image_06042025_10_52_01_5222.jpg', 2), ('/home/pi/Desktop/images/06042025/10/51/image_06042025_10_51_01_4879.jpg', 2), ('/home/pi/Desktop/images/06042025/10/50/image_06042025_10_50_02_3003.jpg', 2), ('/home/pi/Desktop/images/06042025/10/48/image_06042025_10_48_01_8647.jpg', 2), ('/home/pi/Desktop/images/06042025/10/42/image_06042025_10_42_01_8050.jpg', 2), ('/home/pi/Desktop/images/06042025/10/41/image_06042025_10_41_01_9435.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75508470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75508470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:56:03.507967
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 10:59:03.376183
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/10/56/image_06042025_10_56_01_8299.jpg', 2), ('/home/pi/Desktop/images/06042025/10/55/image_06042025_10_55_02_0221.jpg', 2), ('/home/pi/Desktop/images/06042025/10/54/image_06042025_10_54_01_6109.jpg', 2), ('/home/pi/Desktop/images/06042025/10/53/image_06042025_10_53_01_7725.jpg', 2), ('/home/pi/Desktop/images/06042025/10/52/image_06042025_10_52_01_5222.jpg', 2), ('/home/pi/Desktop/images/06042025/10/51/image_06042025_10_51_01_4879.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754715b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754715b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:02:03.366807
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/01/image_06042025_11_01_02_0394.jpg', 2), ('/home/pi/Desktop/images/06042025/10/59/image_06042025_10_59_01_6348.jpg', 2), ('/home/pi/Desktop/images/06042025/10/56/image_06042025_10_56_01_8299.jpg', 2), ('/home/pi/Desktop/images/06042025/10/55/image_06042025_10_55_02_0221.jpg', 2), ('/home/pi/Desktop/images/06042025/10/54/image_06042025_10_54_01_6109.jpg', 2), ('/home/pi/Desktop/images/06042025/10/53/image_06042025_10_53_01_7725.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755265b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755265b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:05:03.495450
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/03/image_06042025_11_03_01_9667.jpg', 2), ('/home/pi/Desktop/images/06042025/11/02/image_06042025_11_02_01_8289.jpg', 2), ('/home/pi/Desktop/images/06042025/11/01/image_06042025_11_01_02_0394.jpg', 2), ('/home/pi/Desktop/images/06042025/10/59/image_06042025_10_59_01_6348.jpg', 2), ('/home/pi/Desktop/images/06042025/10/56/image_06042025_10_56_01_8299.jpg', 2), ('/home/pi/Desktop/images/06042025/10/55/image_06042025_10_55_02_0221.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f7570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f7570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:08:02.913937
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/07/image_06042025_11_07_01_2945.jpg', 2), ('/home/pi/Desktop/images/06042025/11/06/image_06042025_11_06_01_6640.jpg', 2), ('/home/pi/Desktop/images/06042025/11/04/image_06042025_11_04_01_9690.jpg', 2), ('/home/pi/Desktop/images/06042025/11/03/image_06042025_11_03_01_9667.jpg', 2), ('/home/pi/Desktop/images/06042025/11/02/image_06042025_11_02_01_8289.jpg', 2), ('/home/pi/Desktop/images/06042025/11/01/image_06042025_11_01_02_0394.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f5490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f5490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:11:03.584564
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/08/image_06042025_11_08_01_5801.jpg', 2), ('/home/pi/Desktop/images/06042025/11/07/image_06042025_11_07_01_2945.jpg', 2), ('/home/pi/Desktop/images/06042025/11/06/image_06042025_11_06_01_6640.jpg', 2), ('/home/pi/Desktop/images/06042025/11/04/image_06042025_11_04_01_9690.jpg', 2), ('/home/pi/Desktop/images/06042025/11/03/image_06042025_11_03_01_9667.jpg', 2), ('/home/pi/Desktop/images/06042025/11/02/image_06042025_11_02_01_8289.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755274d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755274d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:14:02.696301
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/08/image_06042025_11_08_01_5801.jpg', 2), ('/home/pi/Desktop/images/06042025/11/07/image_06042025_11_07_01_2945.jpg', 2), ('/home/pi/Desktop/images/06042025/11/06/image_06042025_11_06_01_6640.jpg', 2), ('/home/pi/Desktop/images/06042025/11/04/image_06042025_11_04_01_9690.jpg', 2), ('/home/pi/Desktop/images/06042025/11/03/image_06042025_11_03_01_9667.jpg', 2), ('/home/pi/Desktop/images/06042025/11/02/image_06042025_11_02_01_8289.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754def70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754def70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:17:03.648699
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/15/image_06042025_11_15_01_3872.jpg', 2), ('/home/pi/Desktop/images/06042025/11/11/image_06042025_11_11_01_9592.jpg', 2), ('/home/pi/Desktop/images/06042025/11/08/image_06042025_11_08_01_5801.jpg', 2), ('/home/pi/Desktop/images/06042025/11/07/image_06042025_11_07_01_2945.jpg', 2), ('/home/pi/Desktop/images/06042025/11/06/image_06042025_11_06_01_6640.jpg', 2), ('/home/pi/Desktop/images/06042025/11/04/image_06042025_11_04_01_9690.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75452630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75452630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:20:03.135319
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/11/19/image_06042025_11_19_02_1709.jpg', 2), ('/home/pi/Desktop/images/06042025/11/18/image_06042025_11_18_01_9730.jpg', 2), ('/home/pi/Desktop/images/06042025/11/17/image_06042025_11_17_01_9068.jpg', 2), ('/home/pi/Desktop/images/06042025/11/15/image_06042025_11_15_01_3872.jpg', 2), ('/home/pi/Desktop/images/06042025/11/11/image_06042025_11_11_01_9592.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    image = Image.open(imagename)
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2687, in open
    % (filename if filename else fp))
OSError: cannot identify image file '/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7547f5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7547f5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:23:03.957665
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', 2), ('/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/11/20/image_06042025_11_20_01_5204.jpg', 2), ('/home/pi/Desktop/images/06042025/11/19/image_06042025_11_19_02_1709.jpg', 2), ('/home/pi/Desktop/images/06042025/11/18/image_06042025_11_18_01_9730.jpg', 2), ('/home/pi/Desktop/images/06042025/11/17/image_06042025_11_17_01_9068.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e4410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e4410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:26:06.411412
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg', 2), ('/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', 2), ('/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/11/20/image_06042025_11_20_01_5204.jpg', 2), ('/home/pi/Desktop/images/06042025/11/19/image_06042025_11_19_02_1709.jpg', 2), ('/home/pi/Desktop/images/06042025/11/18/image_06042025_11_18_01_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754434b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754434b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:29:03.416550
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg', 2), ('/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg', 2), ('/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', 2), ('/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/11/20/image_06042025_11_20_01_5204.jpg', 2), ('/home/pi/Desktop/images/06042025/11/19/image_06042025_11_19_02_1709.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c8430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c8430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:32:03.468282
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', 2), ('/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg', 2), ('/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg', 2), ('/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg', 2), ('/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', 2), ('/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fb450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fb450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:35:03.522485
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', 2), ('/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg', 2), ('/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg', 2), ('/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg', 2), ('/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', 2), ('/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75505590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75505590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:38:03.039279
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/32/image_06042025_11_32_01_9309.jpg', 2), ('/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', 2), ('/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg', 2), ('/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg', 2), ('/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg', 2), ('/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550c4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550c4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:41:03.640218
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/39/image_06042025_11_39_01_6501.jpg', 2), ('/home/pi/Desktop/images/06042025/11/38/image_06042025_11_38_01_5739.jpg', 2), ('/home/pi/Desktop/images/06042025/11/32/image_06042025_11_32_01_9309.jpg', 2), ('/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', 2), ('/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg', 2), ('/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c53d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c53d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:44:03.018512
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg', 2), ('/home/pi/Desktop/images/06042025/11/39/image_06042025_11_39_01_6501.jpg', 2), ('/home/pi/Desktop/images/06042025/11/38/image_06042025_11_38_01_5739.jpg', 2), ('/home/pi/Desktop/images/06042025/11/32/image_06042025_11_32_01_9309.jpg', 2), ('/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', 2), ('/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754dd490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754dd490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:47:03.740526
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg', 2), ('/home/pi/Desktop/images/06042025/11/39/image_06042025_11_39_01_6501.jpg', 2), ('/home/pi/Desktop/images/06042025/11/38/image_06042025_11_38_01_5739.jpg', 2), ('/home/pi/Desktop/images/06042025/11/32/image_06042025_11_32_01_9309.jpg', 2), ('/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', 2), ('/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548a5d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548a5d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:50:03.039503
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/49/image_06042025_11_49_01_5380.jpg', 2), ('/home/pi/Desktop/images/06042025/11/48/image_06042025_11_48_01_9188.jpg', 2), ('/home/pi/Desktop/images/06042025/11/42/image_06042025_11_42_01_8278.jpg', 2), ('/home/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg', 2), ('/home/pi/Desktop/images/06042025/11/39/image_06042025_11_39_01_6501.jpg', 2), ('/home/pi/Desktop/images/06042025/11/38/image_06042025_11_38_01_5739.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a2470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a2470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:53:03.519648
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg', 2), ('/home/pi/Desktop/images/06042025/11/50/image_06042025_11_50_01_3502.jpg', 2), ('/home/pi/Desktop/images/06042025/11/49/image_06042025_11_49_01_5380.jpg', 2), ('/home/pi/Desktop/images/06042025/11/48/image_06042025_11_48_01_9188.jpg', 2), ('/home/pi/Desktop/images/06042025/11/42/image_06042025_11_42_01_8278.jpg', 2), ('/home/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f75f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f75f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:56:02.806598
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 11:59:03.351205
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg', 2), ('/home/pi/Desktop/images/06042025/11/50/image_06042025_11_50_01_3502.jpg', 2), ('/home/pi/Desktop/images/06042025/11/49/image_06042025_11_49_01_5380.jpg', 2), ('/home/pi/Desktop/images/06042025/11/48/image_06042025_11_48_01_9188.jpg', 2), ('/home/pi/Desktop/images/06042025/11/42/image_06042025_11_42_01_8278.jpg', 2), ('/home/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f5610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f5610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:02:03.311609
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg', 2), ('/home/pi/Desktop/images/06042025/12/00/image_06042025_12_00_01_5148.jpg', 2), ('/home/pi/Desktop/images/06042025/11/52/image_06042025_11_52_01_8185.jpg', 2), ('/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg', 2), ('/home/pi/Desktop/images/06042025/11/50/image_06042025_11_50_01_3502.jpg', 2), ('/home/pi/Desktop/images/06042025/11/49/image_06042025_11_49_01_5380.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75469530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75469530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:05:03.797873
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2), ('/home/pi/Desktop/images/06042025/12/02/image_06042025_12_02_01_8065.jpg', 2), ('/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg', 2), ('/home/pi/Desktop/images/06042025/12/00/image_06042025_12_00_01_5148.jpg', 2), ('/home/pi/Desktop/images/06042025/11/52/image_06042025_11_52_01_8185.jpg', 2), ('/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545f4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545f4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:08:02.970828
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2), ('/home/pi/Desktop/images/06042025/12/02/image_06042025_12_02_01_8065.jpg', 2), ('/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg', 2), ('/home/pi/Desktop/images/06042025/12/00/image_06042025_12_00_01_5148.jpg', 2), ('/home/pi/Desktop/images/06042025/11/52/image_06042025_11_52_01_8185.jpg', 2), ('/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754975b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754975b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:11:03.321048
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg', 2), ('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2), ('/home/pi/Desktop/images/06042025/12/02/image_06042025_12_02_01_8065.jpg', 2), ('/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg', 2), ('/home/pi/Desktop/images/06042025/12/00/image_06042025_12_00_01_5148.jpg', 2), ('/home/pi/Desktop/images/06042025/11/52/image_06042025_11_52_01_8185.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548d5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548d5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:14:03.271823
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg', 2), ('/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg', 2), ('/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg', 2), ('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2), ('/home/pi/Desktop/images/06042025/12/02/image_06042025_12_02_01_8065.jpg', 2), ('/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75501470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75501470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:17:03.325535
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg', 2), ('/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg', 2), ('/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg', 2), ('/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg', 2), ('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b23d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b23d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:20:02.731334
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg', 2), ('/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg', 2), ('/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg', 2), ('/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg', 2), ('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a2470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a2470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:23:03.315699
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg', 2), ('/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg', 2), ('/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg', 2), ('/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg', 2), ('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755184f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755184f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:26:05.547132
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/16/image_06042025_12_16_02_0439.jpg', 2), ('/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg', 2), ('/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg', 2), ('/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg', 2), ('/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754844b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754844b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:29:03.736538
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/28/image_06042025_12_28_02_1484.jpg', 2), ('/home/pi/Desktop/images/06042025/12/27/image_06042025_12_27_01_5763.jpg', 2), ('/home/pi/Desktop/images/06042025/12/24/image_06042025_12_24_01_7239.jpg', 2), ('/home/pi/Desktop/images/06042025/12/16/image_06042025_12_16_02_0439.jpg', 2), ('/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg', 2), ('/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75453550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75453550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:32:02.834841
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/31/image_06042025_12_31_01_4105.jpg', 2), ('/home/pi/Desktop/images/06042025/12/30/image_06042025_12_30_01_9688.jpg', 2), ('/home/pi/Desktop/images/06042025/12/29/image_06042025_12_29_01_9563.jpg', 2), ('/home/pi/Desktop/images/06042025/12/28/image_06042025_12_28_02_1484.jpg', 2), ('/home/pi/Desktop/images/06042025/12/27/image_06042025_12_27_01_5763.jpg', 2), ('/home/pi/Desktop/images/06042025/12/24/image_06042025_12_24_01_7239.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b5630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b5630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:35:02.946527
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/33/image_06042025_12_33_01_5099.jpg', 2), ('/home/pi/Desktop/images/06042025/12/32/image_06042025_12_32_01_3665.jpg', 2), ('/home/pi/Desktop/images/06042025/12/31/image_06042025_12_31_01_4105.jpg', 2), ('/home/pi/Desktop/images/06042025/12/30/image_06042025_12_30_01_9688.jpg', 2), ('/home/pi/Desktop/images/06042025/12/29/image_06042025_12_29_01_9563.jpg', 2), ('/home/pi/Desktop/images/06042025/12/28/image_06042025_12_28_02_1484.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b2550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b2550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:38:03.149483
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/36/image_06042025_12_36_01_2927.jpg', 2), ('/home/pi/Desktop/images/06042025/12/35/image_06042025_12_35_01_3127.jpg', 2), ('/home/pi/Desktop/images/06042025/12/33/image_06042025_12_33_01_5099.jpg', 2), ('/home/pi/Desktop/images/06042025/12/32/image_06042025_12_32_01_3665.jpg', 2), ('/home/pi/Desktop/images/06042025/12/31/image_06042025_12_31_01_4105.jpg', 2), ('/home/pi/Desktop/images/06042025/12/30/image_06042025_12_30_01_9688.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f6470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f6470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:41:03.653911
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/40/image_06042025_12_40_01_7697.jpg', 2), ('/home/pi/Desktop/images/06042025/12/38/image_06042025_12_38_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/12/36/image_06042025_12_36_01_2927.jpg', 2), ('/home/pi/Desktop/images/06042025/12/35/image_06042025_12_35_01_3127.jpg', 2), ('/home/pi/Desktop/images/06042025/12/33/image_06042025_12_33_01_5099.jpg', 2), ('/home/pi/Desktop/images/06042025/12/32/image_06042025_12_32_01_3665.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7549a4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7549a4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:44:02.964277
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/41/image_06042025_12_41_01_8956.jpg', 2), ('/home/pi/Desktop/images/06042025/12/40/image_06042025_12_40_01_7697.jpg', 2), ('/home/pi/Desktop/images/06042025/12/38/image_06042025_12_38_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/12/36/image_06042025_12_36_01_2927.jpg', 2), ('/home/pi/Desktop/images/06042025/12/35/image_06042025_12_35_01_3127.jpg', 2), ('/home/pi/Desktop/images/06042025/12/33/image_06042025_12_33_01_5099.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75523530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75523530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:47:03.558369
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/46/image_06042025_12_46_01_6595.jpg', 2), ('/home/pi/Desktop/images/06042025/12/42/image_06042025_12_42_01_8247.jpg', 2), ('/home/pi/Desktop/images/06042025/12/41/image_06042025_12_41_01_8956.jpg', 2), ('/home/pi/Desktop/images/06042025/12/40/image_06042025_12_40_01_7697.jpg', 2), ('/home/pi/Desktop/images/06042025/12/38/image_06042025_12_38_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/12/36/image_06042025_12_36_01_2927.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754cd3f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754cd3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:50:02.994442
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/48/image_06042025_12_48_01_7603.jpg', 2), ('/home/pi/Desktop/images/06042025/12/47/image_06042025_12_47_01_8596.jpg', 2), ('/home/pi/Desktop/images/06042025/12/46/image_06042025_12_46_01_6595.jpg', 2), ('/home/pi/Desktop/images/06042025/12/42/image_06042025_12_42_01_8247.jpg', 2), ('/home/pi/Desktop/images/06042025/12/41/image_06042025_12_41_01_8956.jpg', 2), ('/home/pi/Desktop/images/06042025/12/40/image_06042025_12_40_01_7697.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7544c4f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7544c4f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:53:03.660659
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/51/image_06042025_12_51_01_6195.jpg', 2), ('/home/pi/Desktop/images/06042025/12/50/image_06042025_12_50_01_4629.jpg', 2), ('/home/pi/Desktop/images/06042025/12/48/image_06042025_12_48_01_7603.jpg', 2), ('/home/pi/Desktop/images/06042025/12/47/image_06042025_12_47_01_8596.jpg', 2), ('/home/pi/Desktop/images/06042025/12/46/image_06042025_12_46_01_6595.jpg', 2), ('/home/pi/Desktop/images/06042025/12/42/image_06042025_12_42_01_8247.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ce470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ce470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:56:03.257822
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 12:59:03.379550
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/12/58/image_06042025_12_58_01_6080.jpg', 2), ('/home/pi/Desktop/images/06042025/12/57/image_06042025_12_57_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/12/56/image_06042025_12_56_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/12/55/image_06042025_12_55_01_9425.jpg', 2), ('/home/pi/Desktop/images/06042025/12/54/image_06042025_12_54_01_6963.jpg', 2), ('/home/pi/Desktop/images/06042025/12/53/image_06042025_12_53_01_7621.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ff450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ff450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:02:03.482234
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', 2), ('/home/pi/Desktop/images/06042025/12/59/image_06042025_12_59_01_7073.jpg', 2), ('/home/pi/Desktop/images/06042025/12/58/image_06042025_12_58_01_6080.jpg', 2), ('/home/pi/Desktop/images/06042025/12/57/image_06042025_12_57_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/12/56/image_06042025_12_56_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/12/55/image_06042025_12_55_01_9425.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75534450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75534450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:05:03.491386
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', 2), ('/home/pi/Desktop/images/06042025/13/00/image_06042025_13_00_01_7074.jpg', 2), ('/home/pi/Desktop/images/06042025/12/59/image_06042025_12_59_01_7073.jpg', 2), ('/home/pi/Desktop/images/06042025/12/58/image_06042025_12_58_01_6080.jpg', 2), ('/home/pi/Desktop/images/06042025/12/57/image_06042025_12_57_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/12/56/image_06042025_12_56_01_7862.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75517390>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75517390>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:08:02.912767
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/04/image_06042025_13_04_01_2872.jpg', 2), ('/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', 2), ('/home/pi/Desktop/images/06042025/13/00/image_06042025_13_00_01_7074.jpg', 2), ('/home/pi/Desktop/images/06042025/12/59/image_06042025_12_59_01_7073.jpg', 2), ('/home/pi/Desktop/images/06042025/12/58/image_06042025_12_58_01_6080.jpg', 2), ('/home/pi/Desktop/images/06042025/12/57/image_06042025_12_57_01_9576.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e83f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e83f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:11:03.671366
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/10/image_06042025_13_10_01_6945.jpg', 2), ('/home/pi/Desktop/images/06042025/13/07/image_06042025_13_07_01_2445.jpg', 2), ('/home/pi/Desktop/images/06042025/13/04/image_06042025_13_04_01_2872.jpg', 2), ('/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', 2), ('/home/pi/Desktop/images/06042025/13/00/image_06042025_13_00_01_7074.jpg', 2), ('/home/pi/Desktop/images/06042025/12/59/image_06042025_12_59_01_7073.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75481570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75481570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:14:03.508915
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/11/image_06042025_13_11_01_9433.jpg', 2), ('/home/pi/Desktop/images/06042025/13/10/image_06042025_13_10_01_6945.jpg', 2), ('/home/pi/Desktop/images/06042025/13/07/image_06042025_13_07_01_2445.jpg', 2), ('/home/pi/Desktop/images/06042025/13/04/image_06042025_13_04_01_2872.jpg', 2), ('/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', 2), ('/home/pi/Desktop/images/06042025/13/00/image_06042025_13_00_01_7074.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754445f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754445f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:17:03.900095
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/12/image_06042025_13_12_01_8614.jpg', 2), ('/home/pi/Desktop/images/06042025/13/11/image_06042025_13_11_01_9433.jpg', 2), ('/home/pi/Desktop/images/06042025/13/10/image_06042025_13_10_01_6945.jpg', 2), ('/home/pi/Desktop/images/06042025/13/07/image_06042025_13_07_01_2445.jpg', 2), ('/home/pi/Desktop/images/06042025/13/04/image_06042025_13_04_01_2872.jpg', 2), ('/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d23d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d23d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:20:03.191557
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/18/image_06042025_13_18_02_0834.jpg', 2), ('/home/pi/Desktop/images/06042025/13/17/image_06042025_13_17_02_2382.jpg', 2), ('/home/pi/Desktop/images/06042025/13/12/image_06042025_13_12_01_8614.jpg', 2), ('/home/pi/Desktop/images/06042025/13/11/image_06042025_13_11_01_9433.jpg', 2), ('/home/pi/Desktop/images/06042025/13/10/image_06042025_13_10_01_6945.jpg', 2), ('/home/pi/Desktop/images/06042025/13/07/image_06042025_13_07_01_2445.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754945b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754945b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:23:03.401546
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/21/image_06042025_13_21_01_9235.jpg', 2), ('/home/pi/Desktop/images/06042025/13/20/image_06042025_13_20_01_5887.jpg', 2), ('/home/pi/Desktop/images/06042025/13/18/image_06042025_13_18_02_0834.jpg', 2), ('/home/pi/Desktop/images/06042025/13/17/image_06042025_13_17_02_2382.jpg', 2), ('/home/pi/Desktop/images/06042025/13/12/image_06042025_13_12_01_8614.jpg', 2), ('/home/pi/Desktop/images/06042025/13/11/image_06042025_13_11_01_9433.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550c470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550c470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:26:06.364595
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', 2), ('/home/pi/Desktop/images/06042025/13/22/image_06042025_13_22_01_8970.jpg', 2), ('/home/pi/Desktop/images/06042025/13/21/image_06042025_13_21_01_9235.jpg', 2), ('/home/pi/Desktop/images/06042025/13/20/image_06042025_13_20_01_5887.jpg', 2), ('/home/pi/Desktop/images/06042025/13/18/image_06042025_13_18_02_0834.jpg', 2), ('/home/pi/Desktop/images/06042025/13/17/image_06042025_13_17_02_2382.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d05d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d05d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:29:03.927835
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', 2), ('/home/pi/Desktop/images/06042025/13/22/image_06042025_13_22_01_8970.jpg', 2), ('/home/pi/Desktop/images/06042025/13/21/image_06042025_13_21_01_9235.jpg', 2), ('/home/pi/Desktop/images/06042025/13/20/image_06042025_13_20_01_5887.jpg', 2), ('/home/pi/Desktop/images/06042025/13/18/image_06042025_13_18_02_0834.jpg', 2), ('/home/pi/Desktop/images/06042025/13/17/image_06042025_13_17_02_2382.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548e410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548e410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:32:03.132263
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', 2), ('/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/13/26/image_06042025_13_26_02_0228.jpg', 2), ('/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', 2), ('/home/pi/Desktop/images/06042025/13/22/image_06042025_13_22_01_8970.jpg', 2), ('/home/pi/Desktop/images/06042025/13/21/image_06042025_13_21_01_9235.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d75d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d75d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:35:04.040175
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg', 2), ('/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg', 2), ('/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', 2), ('/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/13/26/image_06042025_13_26_02_0228.jpg', 2), ('/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543d450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543d450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:38:02.628652
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg', 2), ('/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg', 2), ('/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', 2), ('/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/13/26/image_06042025_13_26_02_0228.jpg', 2), ('/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75441590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75441590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:41:03.451595
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg', 2), ('/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg', 2), ('/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', 2), ('/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/13/26/image_06042025_13_26_02_0228.jpg', 2), ('/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545b570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545b570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:44:02.608768
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/42/image_06042025_13_42_01_6699.jpg', 2), ('/home/pi/Desktop/images/06042025/13/34/image_06042025_13_34_01_9514.jpg', 2), ('/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg', 2), ('/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg', 2), ('/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', 2), ('/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75451550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75451550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:47:04.057916
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/43/image_06042025_13_43_01_9690.jpg', 2), ('/home/pi/Desktop/images/06042025/13/42/image_06042025_13_42_01_6699.jpg', 2), ('/home/pi/Desktop/images/06042025/13/34/image_06042025_13_34_01_9514.jpg', 2), ('/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg', 2), ('/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg', 2), ('/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754953f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754953f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:50:03.271242
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/51/image_06042025_13_51_01_9676.jpg', 2), ('/home/pi/Desktop/images/06042025/13/49/image_06042025_13_49_01_6060.jpg', 2), ('/home/pi/Desktop/images/06042025/13/48/image_06042025_13_48_02_2243.jpg', 2), ('/home/pi/Desktop/images/06042025/13/47/image_06042025_13_47_01_2517.jpg', 2), ('/home/pi/Desktop/images/06042025/13/43/image_06042025_13_43_01_9690.jpg', 2), ('/home/pi/Desktop/images/06042025/13/42/image_06042025_13_42_01_6699.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    image = Image.open(imagename)
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2687, in open
    % (filename if filename else fp))
OSError: cannot identify image file '/home/pi/Desktop/images/06042025/13/51/image_06042025_13_51_01_9676.jpg'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7546e610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7546e610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:53:03.076718
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/51/image_06042025_13_51_01_9676.jpg', 2), ('/home/pi/Desktop/images/06042025/13/49/image_06042025_13_49_01_6060.jpg', 2), ('/home/pi/Desktop/images/06042025/13/48/image_06042025_13_48_02_2243.jpg', 2), ('/home/pi/Desktop/images/06042025/13/47/image_06042025_13_47_01_2517.jpg', 2), ('/home/pi/Desktop/images/06042025/13/43/image_06042025_13_43_01_9690.jpg', 2), ('/home/pi/Desktop/images/06042025/13/42/image_06042025_13_42_01_6699.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755304d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755304d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:56:03.053342
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 13:59:03.686043
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2), ('/home/pi/Desktop/images/06042025/13/54/image_06042025_13_54_01_4955.jpg', 2), ('/home/pi/Desktop/images/06042025/13/51/image_06042025_13_51_01_9676.jpg', 2), ('/home/pi/Desktop/images/06042025/13/50/image_06042025_13_50_01_5023.jpg', 2), ('/home/pi/Desktop/images/06042025/13/49/image_06042025_13_49_01_6060.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:02:03.581748
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2), ('/home/pi/Desktop/images/06042025/13/54/image_06042025_13_54_01_4955.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bb410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bb410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:05:03.086317
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fa410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fa410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:08:03.076001
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75529590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75529590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:11:03.453650
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75499410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75499410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:14:02.655332
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755064f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755064f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:17:02.989407
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754be430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754be430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:20:03.003396
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b53f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b53f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:23:03.316501
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755145f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755145f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:26:04.177737
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75466570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75466570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:29:04.124297
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75497470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75497470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:32:03.021173
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754654d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754654d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:35:03.186732
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e03d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e03d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:38:03.329446
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545e450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545e450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:41:03.503648
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75505570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75505570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:44:02.758247
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bc470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bc470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:47:03.248116
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75443550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75443550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:50:03.129397
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ad410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ad410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:53:03.777880
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75520610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75520610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:56:02.679572
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 14:59:03.016904
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75497590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75497590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:02:03.012940
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548d5f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548d5f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:05:03.410960
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754db5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754db5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:08:03.448659
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754685b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754685b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:11:03.876511
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550a450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550a450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:14:03.011687
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7552b530>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7552b530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:17:03.345775
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754634d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754634d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:20:03.344001
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551a650>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551a650>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:23:03.693455
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754505d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754505d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
 val : 1 : upload photos already in processing! 
2025-04-06 15:27:26.836205
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550c550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550c550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
 val : 1 : upload photos already in processing! 
2025-04-06 15:31:03.303349
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', 2), ('/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg', 2), ('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548c510>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548c510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:34:03.107461
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2), ('/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', 2), ('/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg', 2), ('/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', 2), ('/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg', 2), ('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bc430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bc430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:37:03.499307
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2), ('/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', 2), ('/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg', 2), ('/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', 2), ('/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg', 2), ('/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75468590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75468590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:40:02.827035
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg', 2), ('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2), ('/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', 2), ('/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg', 2), ('/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', 2), ('/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754765b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754765b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:43:03.345290
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg', 2), ('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2), ('/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', 2), ('/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg', 2), ('/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', 2), ('/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545e410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545e410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:46:03.442356
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/38/image_06042025_15_38_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg', 2), ('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2), ('/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', 2), ('/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg', 2), ('/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754aa490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754aa490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:49:03.300238
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/47/image_06042025_15_47_02_0595.jpg', 2), ('/home/pi/Desktop/images/06042025/15/45/image_06042025_15_45_02_0103.jpg', 2), ('/home/pi/Desktop/images/06042025/15/38/image_06042025_15_38_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg', 2), ('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2), ('/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75463450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75463450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:52:02.687673
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/48/image_06042025_15_48_02_0067.jpg', 2), ('/home/pi/Desktop/images/06042025/15/47/image_06042025_15_47_02_0595.jpg', 2), ('/home/pi/Desktop/images/06042025/15/45/image_06042025_15_45_02_0103.jpg', 2), ('/home/pi/Desktop/images/06042025/15/38/image_06042025_15_38_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg', 2), ('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755194f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755194f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:55:03.443305
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg', 2), ('/home/pi/Desktop/images/06042025/15/48/image_06042025_15_48_02_0067.jpg', 2), ('/home/pi/Desktop/images/06042025/15/47/image_06042025_15_47_02_0595.jpg', 2), ('/home/pi/Desktop/images/06042025/15/45/image_06042025_15_45_02_0103.jpg', 2), ('/home/pi/Desktop/images/06042025/15/38/image_06042025_15_38_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 15:59:03.000843
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2), ('/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg', 2), ('/home/pi/Desktop/images/06042025/15/48/image_06042025_15_48_02_0067.jpg', 2), ('/home/pi/Desktop/images/06042025/15/47/image_06042025_15_47_02_0595.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75494430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75494430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:02:03.394172
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2), ('/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', 2), ('/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg', 2), ('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551d5f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551d5f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:05:03.292926
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2), ('/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', 2), ('/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg', 2), ('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754af430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754af430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:08:03.109102
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2), ('/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', 2), ('/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg', 2), ('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550f590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550f590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:11:03.970933
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2), ('/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', 2), ('/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg', 2), ('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7544a5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7544a5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:14:02.836343
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2), ('/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', 2), ('/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754d9610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754d9610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:17:04.026500
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2), ('/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7547d630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7547d630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:20:02.739012
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2), ('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2), ('/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75490570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75490570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:23:04.173142
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2), ('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2), ('/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755144f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755144f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:26:05.722143
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2), ('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2), ('/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ba630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ba630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:29:03.714401
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2), ('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2), ('/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75519430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75519430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:32:02.692527
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/18/image_06042025_16_18_02_3590.jpg', 2), ('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2), ('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2), ('/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543d430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543d430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:35:04.053240
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg', 2), ('/home/pi/Desktop/images/06042025/16/32/image_06042025_16_32_01_5688.jpg', 2), ('/home/pi/Desktop/images/06042025/16/18/image_06042025_16_18_02_3590.jpg', 2), ('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2), ('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754db5d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754db5d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:38:02.885846
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/36/image_06042025_16_36_02_2352.jpg', 2), ('/home/pi/Desktop/images/06042025/16/35/image_06042025_16_35_02_1570.jpg', 2), ('/home/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg', 2), ('/home/pi/Desktop/images/06042025/16/32/image_06042025_16_32_01_5688.jpg', 2), ('/home/pi/Desktop/images/06042025/16/18/image_06042025_16_18_02_3590.jpg', 2), ('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75477610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75477610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:41:03.378636
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg', 2), ('/home/pi/Desktop/images/06042025/16/36/image_06042025_16_36_02_2352.jpg', 2), ('/home/pi/Desktop/images/06042025/16/35/image_06042025_16_35_02_1570.jpg', 2), ('/home/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg', 2), ('/home/pi/Desktop/images/06042025/16/32/image_06042025_16_32_01_5688.jpg', 2), ('/home/pi/Desktop/images/06042025/16/18/image_06042025_16_18_02_3590.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75440450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75440450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:44:03.470247
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/42/image_06042025_16_42_01_3797.jpg', 2), ('/home/pi/Desktop/images/06042025/16/40/image_06042025_16_40_01_6635.jpg', 2), ('/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg', 2), ('/home/pi/Desktop/images/06042025/16/36/image_06042025_16_36_02_2352.jpg', 2), ('/home/pi/Desktop/images/06042025/16/35/image_06042025_16_35_02_1570.jpg', 2), ('/home/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545e510>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545e510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:47:03.880451
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/42/image_06042025_16_42_01_3797.jpg', 2), ('/home/pi/Desktop/images/06042025/16/40/image_06042025_16_40_01_6635.jpg', 2), ('/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg', 2), ('/home/pi/Desktop/images/06042025/16/36/image_06042025_16_36_02_2352.jpg', 2), ('/home/pi/Desktop/images/06042025/16/35/image_06042025_16_35_02_1570.jpg', 2), ('/home/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754de490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754de490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:50:03.046763
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg', 2), ('/home/pi/Desktop/images/06042025/16/48/image_06042025_16_48_01_9076.jpg', 2), ('/home/pi/Desktop/images/06042025/16/44/image_06042025_16_44_01_5012.jpg', 2), ('/home/pi/Desktop/images/06042025/16/42/image_06042025_16_42_01_3797.jpg', 2), ('/home/pi/Desktop/images/06042025/16/40/image_06042025_16_40_01_6635.jpg', 2), ('/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75466490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75466490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:53:03.410479
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg', 2), ('/home/pi/Desktop/images/06042025/16/48/image_06042025_16_48_01_9076.jpg', 2), ('/home/pi/Desktop/images/06042025/16/44/image_06042025_16_44_01_5012.jpg', 2), ('/home/pi/Desktop/images/06042025/16/42/image_06042025_16_42_01_3797.jpg', 2), ('/home/pi/Desktop/images/06042025/16/40/image_06042025_16_40_01_6635.jpg', 2), ('/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e3490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e3490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:56:03.062779
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 16:59:03.504609
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', 2), ('/home/pi/Desktop/images/06042025/16/56/image_06042025_16_56_02_0098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/54/image_06042025_16_54_01_5818.jpg', 2), ('/home/pi/Desktop/images/06042025/16/50/image_06042025_16_50_01_9838.jpg', 2), ('/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg', 2), ('/home/pi/Desktop/images/06042025/16/48/image_06042025_16_48_01_9076.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7547f410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7547f410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:02:02.870152
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg', 2), ('/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', 2), ('/home/pi/Desktop/images/06042025/16/56/image_06042025_16_56_02_0098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/54/image_06042025_16_54_01_5818.jpg', 2), ('/home/pi/Desktop/images/06042025/16/50/image_06042025_16_50_01_9838.jpg', 2), ('/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ca5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ca5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:05:03.641617
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg', 2), ('/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', 2), ('/home/pi/Desktop/images/06042025/16/56/image_06042025_16_56_02_0098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/54/image_06042025_16_54_01_5818.jpg', 2), ('/home/pi/Desktop/images/06042025/16/50/image_06042025_16_50_01_9838.jpg', 2), ('/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a44f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a44f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:08:02.742118
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg', 2), ('/home/pi/Desktop/images/06042025/17/06/image_06042025_17_06_01_5690.jpg', 2), ('/home/pi/Desktop/images/06042025/17/01/image_06042025_17_01_01_6669.jpg', 2), ('/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg', 2), ('/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', 2), ('/home/pi/Desktop/images/06042025/16/56/image_06042025_16_56_02_0098.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754705f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754705f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:11:03.369167
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', 2), ('/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg', 2), ('/home/pi/Desktop/images/06042025/17/06/image_06042025_17_06_01_5690.jpg', 2), ('/home/pi/Desktop/images/06042025/17/01/image_06042025_17_01_01_6669.jpg', 2), ('/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg', 2), ('/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754b7510>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754b7510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:14:02.690766
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', 2), ('/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg', 2), ('/home/pi/Desktop/images/06042025/17/06/image_06042025_17_06_01_5690.jpg', 2), ('/home/pi/Desktop/images/06042025/17/01/image_06042025_17_01_01_6669.jpg', 2), ('/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg', 2), ('/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754cc5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754cc5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:17:03.781094
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/10/image_06042025_17_10_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', 2), ('/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg', 2), ('/home/pi/Desktop/images/06042025/17/06/image_06042025_17_06_01_5690.jpg', 2), ('/home/pi/Desktop/images/06042025/17/01/image_06042025_17_01_01_6669.jpg', 2), ('/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754714b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754714b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:20:03.078543
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg', 2), ('/home/pi/Desktop/images/06042025/17/18/image_06042025_17_18_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/17/17/image_06042025_17_17_01_5514.jpg', 2), ('/home/pi/Desktop/images/06042025/17/10/image_06042025_17_10_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', 2), ('/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ce630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ce630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:23:04.025502
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg', 2), ('/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg', 2), ('/home/pi/Desktop/images/06042025/17/18/image_06042025_17_18_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/17/17/image_06042025_17_17_01_5514.jpg', 2), ('/home/pi/Desktop/images/06042025/17/10/image_06042025_17_10_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e83f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e83f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:26:06.081535
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg', 2), ('/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg', 2), ('/home/pi/Desktop/images/06042025/17/18/image_06042025_17_18_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/17/17/image_06042025_17_17_01_5514.jpg', 2), ('/home/pi/Desktop/images/06042025/17/10/image_06042025_17_10_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754883f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754883f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:29:03.473032
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2), ('/home/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg', 2), ('/home/pi/Desktop/images/06042025/17/22/image_06042025_17_22_02_2083.jpg', 2), ('/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg', 2), ('/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg', 2), ('/home/pi/Desktop/images/06042025/17/18/image_06042025_17_18_01_7881.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550a3f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550a3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:32:03.119991
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2), ('/home/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg', 2), ('/home/pi/Desktop/images/06042025/17/22/image_06042025_17_22_02_2083.jpg', 2), ('/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg', 2), ('/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754af5f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754af5f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:35:04.026912
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', 2), ('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2), ('/home/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg', 2), ('/home/pi/Desktop/images/06042025/17/22/image_06042025_17_22_02_2083.jpg', 2), ('/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75507570>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75507570>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:38:03.558089
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2), ('/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', 2), ('/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', 2), ('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2), ('/home/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75480430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75480430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:41:03.595154
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2), ('/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', 2), ('/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', 2), ('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2), ('/home/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bd510>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bd510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:44:03.616760
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', 2), ('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2), ('/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', 2), ('/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', 2), ('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75469450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75469450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:47:03.477146
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', 2), ('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2), ('/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', 2), ('/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', 2), ('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75488630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75488630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:50:03.278143
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/49/image_06042025_17_49_01_7231.jpg', 2), ('/home/pi/Desktop/images/06042025/17/48/image_06042025_17_48_01_7123.jpg', 2), ('/home/pi/Desktop/images/06042025/17/43/image_06042025_17_43_01_8880.jpg', 2), ('/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', 2), ('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2), ('/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550e3f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550e3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:53:03.299291
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/50/image_06042025_17_50_01_8976.jpg', 2), ('/home/pi/Desktop/images/06042025/17/49/image_06042025_17_49_01_7231.jpg', 2), ('/home/pi/Desktop/images/06042025/17/48/image_06042025_17_48_01_7123.jpg', 2), ('/home/pi/Desktop/images/06042025/17/43/image_06042025_17_43_01_8880.jpg', 2), ('/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', 2), ('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548c4d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548c4d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:56:02.821855
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 17:59:03.929552
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg', 2), ('/home/pi/Desktop/images/06042025/17/55/image_06042025_17_55_01_3862.jpg', 2), ('/home/pi/Desktop/images/06042025/17/54/image_06042025_17_54_01_5311.jpg', 2), ('/home/pi/Desktop/images/06042025/17/52/image_06042025_17_52_02_2190.jpg', 2), ('/home/pi/Desktop/images/06042025/17/50/image_06042025_17_50_01_8976.jpg', 2), ('/home/pi/Desktop/images/06042025/17/49/image_06042025_17_49_01_7231.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754845f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754845f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:02:03.345467
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg', 2), ('/home/pi/Desktop/images/06042025/17/55/image_06042025_17_55_01_3862.jpg', 2), ('/home/pi/Desktop/images/06042025/17/54/image_06042025_17_54_01_5311.jpg', 2), ('/home/pi/Desktop/images/06042025/17/52/image_06042025_17_52_02_2190.jpg', 2), ('/home/pi/Desktop/images/06042025/17/50/image_06042025_17_50_01_8976.jpg', 2), ('/home/pi/Desktop/images/06042025/17/49/image_06042025_17_49_01_7231.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754a95f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754a95f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:05:04.054549
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/17/58/image_06042025_17_58_01_9299.jpg', 2), ('/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg', 2), ('/home/pi/Desktop/images/06042025/17/55/image_06042025_17_55_01_3862.jpg', 2), ('/home/pi/Desktop/images/06042025/17/54/image_06042025_17_54_01_5311.jpg', 2), ('/home/pi/Desktop/images/06042025/17/52/image_06042025_17_52_02_2190.jpg', 2), ('/home/pi/Desktop/images/06042025/17/50/image_06042025_17_50_01_8976.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548c5f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548c5f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:08:03.699022
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2), ('/home/pi/Desktop/images/06042025/18/03/image_06042025_18_03_01_8629.jpg', 2), ('/home/pi/Desktop/images/06042025/17/58/image_06042025_17_58_01_9299.jpg', 2), ('/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg', 2), ('/home/pi/Desktop/images/06042025/17/55/image_06042025_17_55_01_3862.jpg', 2), ('/home/pi/Desktop/images/06042025/17/54/image_06042025_17_54_01_5311.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754bd450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754bd450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:11:03.805648
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2), ('/home/pi/Desktop/images/06042025/18/03/image_06042025_18_03_01_8629.jpg', 2), ('/home/pi/Desktop/images/06042025/17/58/image_06042025_17_58_01_9299.jpg', 2), ('/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fe430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fe430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:14:03.208179
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2), ('/home/pi/Desktop/images/06042025/18/03/image_06042025_18_03_01_8629.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755324b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755324b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:17:03.298220
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2), ('/home/pi/Desktop/images/06042025/18/03/image_06042025_18_03_01_8629.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7546c4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7546c4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:20:02.879218
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2), ('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754db630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754db630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:23:03.699396
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2), ('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e85f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e85f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:26:04.646984
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2), ('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75445550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75445550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:29:04.134742
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2), ('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7550e410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7550e410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:32:02.853754
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg', 2), ('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2), ('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2), ('/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543e490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543e490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:35:03.874537
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', 2), ('/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg', 2), ('/home/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg', 2), ('/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg', 2), ('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2), ('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754994d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754994d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:38:03.568337
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg', 2), ('/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', 2), ('/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg', 2), ('/home/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg', 2), ('/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg', 2), ('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fb4d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fb4d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:41:03.572945
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg', 2), ('/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', 2), ('/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg', 2), ('/home/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg', 2), ('/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg', 2), ('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754cf470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754cf470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:44:03.221146
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/38/image_06042025_18_38_01_4141.jpg', 2), ('/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg', 2), ('/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', 2), ('/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg', 2), ('/home/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg', 2), ('/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f9410>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f9410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:47:03.542218
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/43/image_06042025_18_43_01_5048.jpg', 2), ('/home/pi/Desktop/images/06042025/18/38/image_06042025_18_38_01_4141.jpg', 2), ('/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg', 2), ('/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', 2), ('/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg', 2), ('/home/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ec430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ec430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:50:03.241150
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/46/image_06042025_18_46_02_2836.jpg', 2), ('/home/pi/Desktop/images/06042025/18/43/image_06042025_18_43_01_5048.jpg', 2), ('/home/pi/Desktop/images/06042025/18/38/image_06042025_18_38_01_4141.jpg', 2), ('/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg', 2), ('/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', 2), ('/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fa4b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fa4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:53:03.549163
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2), ('/home/pi/Desktop/images/06042025/18/46/image_06042025_18_46_02_2836.jpg', 2), ('/home/pi/Desktop/images/06042025/18/43/image_06042025_18_43_01_5048.jpg', 2), ('/home/pi/Desktop/images/06042025/18/38/image_06042025_18_38_01_4141.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75457430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75457430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:56:03.272132
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 18:59:03.254531
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75453610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75453610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:02:03.171723
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754cc5d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754cc5d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:05:03.614082
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75491650>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75491650>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:08:02.651665
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754ec470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754ec470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:11:04.030173
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754995b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754995b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:14:03.145518
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754934d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754934d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:17:03.398208
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75495490>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75495490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:20:03.529070
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7545f550>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7545f550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:23:04.238140
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754e35b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754e35b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:26:04.409801
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f6590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f6590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:29:03.539433
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754f84d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754f84d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:32:03.447825
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7551f5b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7551f5b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:35:03.751433
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754c5430>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754c5430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:38:02.851256
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75481610>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75481610>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:41:03.231104
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754fc470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754fc470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:44:03.232588
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7548b590>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7548b590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:47:03.608126
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7543e470>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7543e470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:50:02.754528
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x75565f30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75565f30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:53:03.109066
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x754da450>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x754da450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:56:03.204698
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 19:59:03.849307
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 335, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 409, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x755093f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x755093f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:02:02.788226
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : test_valcor_dechet_0325_48MP_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
0
2727256
0
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', 2), ('/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', 2), ('/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', 2), ('/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', 2), ('/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', 2), ('/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg', 2)]
{'portfolio_id': 22083911, 'actiontaken': ['Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1743962583000}
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg', '/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg', '/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg', '/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg', '/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg', '/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/18/56/image_06042025_18_56_02_0333.jpg
/home/pi/Desktop/images/06042025/18/54/image_06042025_18_54_01_6169.jpg
/home/pi/Desktop/images/06042025/18/53/image_06042025_18_53_02_2283.jpg
/home/pi/Desktop/images/06042025/18/52/image_06042025_18_52_01_3132.jpg
/home/pi/Desktop/images/06042025/18/51/image_06042025_18_51_01_7299.jpg
/home/pi/Desktop/images/06042025/18/48/image_06042025_18_48_01_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180390","1350180381","1350180389","1350180383","1350180386","1350180391"],"photo_ids_order":["1350180381","1350180383","1350180386","1350180389","1350180390","1350180391"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9bed522f7a733fba7d6cd6995c32496e.jpg","text":"TemporaryFile(/tmp/multipartBody7944262323662981459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962588204,"filename":"image_06042025_18_51_01_7299.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/278424e6ffaba05b7328d62b4422823e.jpg","text":"TemporaryFile(/tmp/multipartBody3646906430773500109asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962588204,"filename":"image_06042025_18_56_02_0333.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0cea691e40ff8ffd8814bbbd6d8051b5.jpg","text":"TemporaryFile(/tmp/multipartBody8531974159464124488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962588204,"filename":"image_06042025_18_52_01_3132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af3604e3fa959dbd57d5b1cbc7e3fb70.jpg","text":"TemporaryFile(/tmp/multipartBody3447437651328525415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962588204,"filename":"image_06042025_18_54_01_6169.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3a76eb0ab255eb9b90f39e7de11eae47.jpg","text":"TemporaryFile(/tmp/multipartBody6265455021057717710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962588204,"filename":"image_06042025_18_53_02_2283.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/91bdbf69a305ba1ea025c56aa929c497.jpg","text":"TemporaryFile(/tmp/multipartBody1429927523979571087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962588204,"filename":"image_06042025_18_48_01_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180386","file1":"1350180383","file0":"1350180381","file4":"1350180390","file5":"1350180391","file3":"1350180389"},"map_files_photo_id_array":[{"photo_id":"1350180391","filename":"file5"},{"photo_id":"1350180386","filename":"file2"},{"photo_id":"1350180390","filename":"file4"},{"photo_id":"1350180383","filename":"file1"},{"photo_id":"1350180381","filename":"file0"},{"photo_id":"1350180389","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350180390":["hashtag1","hashtag2"]},{"1350180381":["hashtag1","hashtag2"]},{"1350180389":["hashtag1","hashtag2"]},{"1350180383":["hashtag1","hashtag2"]},{"1350180386":["hashtag1","hashtag2"]},{"1350180391":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350180390, 1350180381, 1350180389, 1350180383, 1350180386, 1350180391)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 109.63036775588989 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:04:03.185050
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/18/46/image_06042025_18_46_02_2836.jpg', 2), ('/home/pi/Desktop/images/06042025/18/43/image_06042025_18_43_01_5048.jpg', 2), ('/home/pi/Desktop/images/06042025/18/38/image_06042025_18_38_01_4141.jpg', 2), ('/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg', 2), ('/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', 2), ('/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/18/46/image_06042025_18_46_02_2836.jpg', '/home/pi/Desktop/images/06042025/18/43/image_06042025_18_43_01_5048.jpg', '/home/pi/Desktop/images/06042025/18/38/image_06042025_18_38_01_4141.jpg', '/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg', '/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg', '/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/18/46/image_06042025_18_46_02_2836.jpg
/home/pi/Desktop/images/06042025/18/43/image_06042025_18_43_01_5048.jpg
/home/pi/Desktop/images/06042025/18/38/image_06042025_18_38_01_4141.jpg
/home/pi/Desktop/images/06042025/18/35/image_06042025_18_35_01_7296.jpg
/home/pi/Desktop/images/06042025/18/34/image_06042025_18_34_01_9170.jpg
/home/pi/Desktop/images/06042025/18/33/image_06042025_18_33_01_3804.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180457","1350180409","1350180449","1350180434","1350180443","1350180422"],"photo_ids_order":["1350180409","1350180422","1350180434","1350180443","1350180449","1350180457"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b528e3810646b899fde8a6c594c6d757.jpg","text":"TemporaryFile(/tmp/multipartBody6141794783751421384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962707363,"filename":"image_06042025_18_33_01_3804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0a45453bb8478a9954623082bea9f759.jpg","text":"TemporaryFile(/tmp/multipartBody4993172815262226014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962707363,"filename":"image_06042025_18_46_02_2836.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/31e489adca29412d4b5016588d71d2ee.jpg","text":"TemporaryFile(/tmp/multipartBody508465655751559197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962707363,"filename":"image_06042025_18_34_01_9170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9cdaa6685a1f200c4d4fe1f291599440.jpg","text":"TemporaryFile(/tmp/multipartBody1949549947064230028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962707363,"filename":"image_06042025_18_38_01_4141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f24051cdb2dc557bac76d2336111fa46.jpg","text":"TemporaryFile(/tmp/multipartBody7665087296820045293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962707363,"filename":"image_06042025_18_35_01_7296.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e8f45b791e934d3a5e8b34542116035a.jpg","text":"TemporaryFile(/tmp/multipartBody6544504389493430763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962707363,"filename":"image_06042025_18_43_01_5048.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180434","file1":"1350180422","file0":"1350180409","file4":"1350180449","file5":"1350180457","file3":"1350180443"},"map_files_photo_id_array":[{"photo_id":"1350180457","filename":"file5"},{"photo_id":"1350180434","filename":"file2"},{"photo_id":"1350180449","filename":"file4"},{"photo_id":"1350180422","filename":"file1"},{"photo_id":"1350180409","filename":"file0"},{"photo_id":"1350180443","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350180457":["hashtag1","hashtag2"]},{"1350180409":["hashtag1","hashtag2"]},{"1350180449":["hashtag1","hashtag2"]},{"1350180434":["hashtag1","hashtag2"]},{"1350180443":["hashtag1","hashtag2"]},{"1350180422":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350180457, 1350180409, 1350180449, 1350180434, 1350180443, 1350180422)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.68612313270569 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:06:03.403043
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg', 2), ('/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg', 2), ('/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', 2), ('/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', 2), ('/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg', '/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg', '/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg', '/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg', '/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg', '/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/18/31/image_06042025_18_31_01_2719.jpg
/home/pi/Desktop/images/06042025/18/20/image_06042025_18_20_01_6287.jpg
/home/pi/Desktop/images/06042025/18/14/image_06042025_18_14_01_2460.jpg
/home/pi/Desktop/images/06042025/18/12/image_06042025_18_12_01_9576.jpg
/home/pi/Desktop/images/06042025/18/11/image_06042025_18_11_01_6034.jpg
/home/pi/Desktop/images/06042025/18/09/image_06042025_18_09_02_1938.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180576","1350180552","1350180561","1350180540","1350180584","1350180568"],"photo_ids_order":["1350180540","1350180552","1350180561","1350180568","1350180576","1350180584"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/04eda38ca0d7b6e4f7708bdb2c6ecddd.jpg","text":"TemporaryFile(/tmp/multipartBody1283131479178475851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962827368,"filename":"image_06042025_18_11_01_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc9694123b5205c57695075791d5bc9a.jpg","text":"TemporaryFile(/tmp/multipartBody245950392932281784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962827368,"filename":"image_06042025_18_20_01_6287.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/00e613a62202c0cea3147102d8b76fd0.jpg","text":"TemporaryFile(/tmp/multipartBody3355239133329372961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962827368,"filename":"image_06042025_18_14_01_2460.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/139007482fddef8a7a78e3821148cbaa.jpg","text":"TemporaryFile(/tmp/multipartBody5931405020179127994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962827368,"filename":"image_06042025_18_31_01_2719.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0e78648f0f7d78b10da4719297a9ac74.jpg","text":"TemporaryFile(/tmp/multipartBody6629427404910949069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962827368,"filename":"image_06042025_18_09_02_1938.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a1afc5e3208279df85f79a66cb35369c.jpg","text":"TemporaryFile(/tmp/multipartBody7855465570916950259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962827368,"filename":"image_06042025_18_12_01_9576.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180561","file1":"1350180552","file0":"1350180540","file4":"1350180576","file5":"1350180584","file3":"1350180568"},"map_files_photo_id_array":[{"photo_id":"1350180584","filename":"file5"},{"photo_id":"1350180561","filename":"file2"},{"photo_id":"1350180576","filename":"file4"},{"photo_id":"1350180552","filename":"file1"},{"photo_id":"1350180540","filename":"file0"},{"photo_id":"1350180568","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350180576":["hashtag1","hashtag2"]},{"1350180552":["hashtag1","hashtag2"]},{"1350180561":["hashtag1","hashtag2"]},{"1350180540":["hashtag1","hashtag2"]},{"1350180584":["hashtag1","hashtag2"]},{"1350180568":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350180576, 1350180552, 1350180561, 1350180540, 1350180584, 1350180568)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.36874461174011 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:08:02.828048
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', 2), ('/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', 2), ('/home/pi/Desktop/images/06042025/18/03/image_06042025_18_03_01_8629.jpg', 2), ('/home/pi/Desktop/images/06042025/17/58/image_06042025_17_58_01_9299.jpg', 2), ('/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg', 2), ('/home/pi/Desktop/images/06042025/17/55/image_06042025_17_55_01_3862.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg', '/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg', '/home/pi/Desktop/images/06042025/18/03/image_06042025_18_03_01_8629.jpg', '/home/pi/Desktop/images/06042025/17/58/image_06042025_17_58_01_9299.jpg', '/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg', '/home/pi/Desktop/images/06042025/17/55/image_06042025_17_55_01_3862.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/18/08/image_06042025_18_08_01_4714.jpg
/home/pi/Desktop/images/06042025/18/07/image_06042025_18_07_02_1950.jpg
/home/pi/Desktop/images/06042025/18/03/image_06042025_18_03_01_8629.jpg
/home/pi/Desktop/images/06042025/17/58/image_06042025_17_58_01_9299.jpg
/home/pi/Desktop/images/06042025/17/56/image_06042025_17_56_01_5970.jpg
/home/pi/Desktop/images/06042025/17/55/image_06042025_17_55_01_3862.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180640","1350180658","1350180651","1350180645","1350180635","1350180629"],"photo_ids_order":["1350180629","1350180635","1350180640","1350180645","1350180651","1350180658"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7a8a40b2930477c91f28bb1e1a0420a2.jpg","text":"TemporaryFile(/tmp/multipartBody6675033166065671336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962946929,"filename":"image_06042025_18_03_01_8629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/608fdddb46b864bd21f9bf3821037ef9.jpg","text":"TemporaryFile(/tmp/multipartBody8702482659684658248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962946929,"filename":"image_06042025_17_55_01_3862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e2d01a09fd3befc9eb20a79d0006e48.jpg","text":"TemporaryFile(/tmp/multipartBody8436790301128308039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962946929,"filename":"image_06042025_17_56_01_5970.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e1bf06e0ffe716af32f92976c845df6b.jpg","text":"TemporaryFile(/tmp/multipartBody6978769370002279529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962946929,"filename":"image_06042025_17_58_01_9299.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/206ff9f169c817e7ccf1e95a0335983e.jpg","text":"TemporaryFile(/tmp/multipartBody1155289512907633614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962946929,"filename":"image_06042025_18_07_02_1950.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/791eb46c1fc96a6c37ea3e05d46775b0.jpg","text":"TemporaryFile(/tmp/multipartBody4556871648581335480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962946929,"filename":"image_06042025_18_08_01_4714.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180640","file1":"1350180635","file0":"1350180629","file4":"1350180651","file5":"1350180658","file3":"1350180645"},"map_files_photo_id_array":[{"photo_id":"1350180658","filename":"file5"},{"photo_id":"1350180640","filename":"file2"},{"photo_id":"1350180651","filename":"file4"},{"photo_id":"1350180635","filename":"file1"},{"photo_id":"1350180629","filename":"file0"},{"photo_id":"1350180645","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350180640":["hashtag1","hashtag2"]},{"1350180658":["hashtag1","hashtag2"]},{"1350180651":["hashtag1","hashtag2"]},{"1350180645":["hashtag1","hashtag2"]},{"1350180635":["hashtag1","hashtag2"]},{"1350180629":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350180640, 1350180658, 1350180651, 1350180645, 1350180635, 1350180629)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.83626103401184 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:10:03.105484
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/17/54/image_06042025_17_54_01_5311.jpg', 2), ('/home/pi/Desktop/images/06042025/17/52/image_06042025_17_52_02_2190.jpg', 2), ('/home/pi/Desktop/images/06042025/17/50/image_06042025_17_50_01_8976.jpg', 2), ('/home/pi/Desktop/images/06042025/17/49/image_06042025_17_49_01_7231.jpg', 2), ('/home/pi/Desktop/images/06042025/17/48/image_06042025_17_48_01_7123.jpg', 2), ('/home/pi/Desktop/images/06042025/17/43/image_06042025_17_43_01_8880.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/17/54/image_06042025_17_54_01_5311.jpg', '/home/pi/Desktop/images/06042025/17/52/image_06042025_17_52_02_2190.jpg', '/home/pi/Desktop/images/06042025/17/50/image_06042025_17_50_01_8976.jpg', '/home/pi/Desktop/images/06042025/17/49/image_06042025_17_49_01_7231.jpg', '/home/pi/Desktop/images/06042025/17/48/image_06042025_17_48_01_7123.jpg', '/home/pi/Desktop/images/06042025/17/43/image_06042025_17_43_01_8880.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/17/54/image_06042025_17_54_01_5311.jpg
/home/pi/Desktop/images/06042025/17/52/image_06042025_17_52_02_2190.jpg
/home/pi/Desktop/images/06042025/17/50/image_06042025_17_50_01_8976.jpg
/home/pi/Desktop/images/06042025/17/49/image_06042025_17_49_01_7231.jpg
/home/pi/Desktop/images/06042025/17/48/image_06042025_17_48_01_7123.jpg
/home/pi/Desktop/images/06042025/17/43/image_06042025_17_43_01_8880.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180738","1350180753","1350180747","1350180741","1350180761","1350180772"],"photo_ids_order":["1350180738","1350180741","1350180747","1350180753","1350180761","1350180772"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1de2a2b7f436e7b7469d3818bf011ce7.jpg","text":"TemporaryFile(/tmp/multipartBody4266479054136982382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963067038,"filename":"image_06042025_17_54_01_5311.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/061ef4211645968e3d1a49f82de95ee1.jpg","text":"TemporaryFile(/tmp/multipartBody1639278283610806486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963067038,"filename":"image_06042025_17_49_01_7231.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d360dbcbb9ae865f0604a32499a9b48b.jpg","text":"TemporaryFile(/tmp/multipartBody6519900938685430682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963067038,"filename":"image_06042025_17_50_01_8976.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aea65203588f5ca18da98234d01d2070.jpg","text":"TemporaryFile(/tmp/multipartBody4421201723166095878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963067038,"filename":"image_06042025_17_52_02_2190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/10c5f34331650565af874bbe6fc80bad.jpg","text":"TemporaryFile(/tmp/multipartBody988659399124906179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963067038,"filename":"image_06042025_17_48_01_7123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b2219534ad7197e03a1c33a9fc874def.jpg","text":"TemporaryFile(/tmp/multipartBody6984763133314811366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963067038,"filename":"image_06042025_17_43_01_8880.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180747","file1":"1350180741","file0":"1350180738","file4":"1350180761","file5":"1350180772","file3":"1350180753"},"map_files_photo_id_array":[{"photo_id":"1350180772","filename":"file5"},{"photo_id":"1350180747","filename":"file2"},{"photo_id":"1350180761","filename":"file4"},{"photo_id":"1350180741","filename":"file1"},{"photo_id":"1350180738","filename":"file0"},{"photo_id":"1350180753","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350180738":["hashtag1","hashtag2"]},{"1350180753":["hashtag1","hashtag2"]},{"1350180747":["hashtag1","hashtag2"]},{"1350180741":["hashtag1","hashtag2"]},{"1350180761":["hashtag1","hashtag2"]},{"1350180772":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350180738, 1350180753, 1350180747, 1350180741, 1350180761, 1350180772)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.1562819480896 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:12:03.390211
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', 2), ('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2), ('/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', 2), ('/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', 2), ('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', '/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', '/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', '/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', '/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', '/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg
/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg
/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg
/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg
/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg
/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 3.799198627471924 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 : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:13:04.070449
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', 2), ('/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', 2), ('/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', 2), ('/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', 2), ('/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', 2), ('/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg', '/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg', '/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg', '/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg', '/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg', '/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/17/37/image_06042025_17_37_02_0836.jpg
/home/pi/Desktop/images/06042025/17/36/image_06042025_17_36_02_0304.jpg
/home/pi/Desktop/images/06042025/17/35/image_06042025_17_35_01_7623.jpg
/home/pi/Desktop/images/06042025/17/30/image_06042025_17_30_01_4322.jpg
/home/pi/Desktop/images/06042025/17/29/image_06042025_17_29_02_1560.jpg
/home/pi/Desktop/images/06042025/17/28/image_06042025_17_28_01_5422.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181011","1350180992","1350181037","1350180962","1350181045","1350181030"],"photo_ids_order":["1350180962","1350180992","1350181011","1350181030","1350181037","1350181045"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f6acd348150a71dba801618f6b7b0199.jpg","text":"TemporaryFile(/tmp/multipartBody100297792220598540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963246829,"filename":"image_06042025_17_35_01_7623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/01952b3dcd3a65a6a7e3545d57007031.jpg","text":"TemporaryFile(/tmp/multipartBody8180531320618237481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963246829,"filename":"image_06042025_17_36_02_0304.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3f241305ef45c89088176932eadd8c77.jpg","text":"TemporaryFile(/tmp/multipartBody5075626007060520081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963246829,"filename":"image_06042025_17_29_02_1560.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/de75172a802bbe1a16241be88cff7805.jpg","text":"TemporaryFile(/tmp/multipartBody7827911636015549648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963246829,"filename":"image_06042025_17_37_02_0836.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a2f5a9898ef87ac26d9f37a70380536f.jpg","text":"TemporaryFile(/tmp/multipartBody5079374920511044893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963246829,"filename":"image_06042025_17_28_01_5422.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/99d72f4e81264ff4b4d9e7be0750651f.jpg","text":"TemporaryFile(/tmp/multipartBody2655011116595067562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963246829,"filename":"image_06042025_17_30_01_4322.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181011","file1":"1350180992","file0":"1350180962","file4":"1350181037","file5":"1350181045","file3":"1350181030"},"map_files_photo_id_array":[{"photo_id":"1350181045","filename":"file5"},{"photo_id":"1350181011","filename":"file2"},{"photo_id":"1350181037","filename":"file4"},{"photo_id":"1350180992","filename":"file1"},{"photo_id":"1350180962","filename":"file0"},{"photo_id":"1350181030","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350181011":["hashtag1","hashtag2"]},{"1350180992":["hashtag1","hashtag2"]},{"1350181037":["hashtag1","hashtag2"]},{"1350180962":["hashtag1","hashtag2"]},{"1350181045":["hashtag1","hashtag2"]},{"1350181030":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350181011, 1350180992, 1350181037, 1350180962, 1350181045, 1350181030)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.86509919166565 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:15:03.357116
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg', 2), ('/home/pi/Desktop/images/06042025/17/22/image_06042025_17_22_02_2083.jpg', 2), ('/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg', 2), ('/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg', 2), ('/home/pi/Desktop/images/06042025/17/18/image_06042025_17_18_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/17/17/image_06042025_17_17_01_5514.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg', '/home/pi/Desktop/images/06042025/17/22/image_06042025_17_22_02_2083.jpg', '/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg', '/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg', '/home/pi/Desktop/images/06042025/17/18/image_06042025_17_18_01_7881.jpg', '/home/pi/Desktop/images/06042025/17/17/image_06042025_17_17_01_5514.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/17/27/image_06042025_17_27_01_8085.jpg
/home/pi/Desktop/images/06042025/17/22/image_06042025_17_22_02_2083.jpg
/home/pi/Desktop/images/06042025/17/20/image_06042025_17_20_01_9404.jpg
/home/pi/Desktop/images/06042025/17/19/image_06042025_17_19_01_7194.jpg
/home/pi/Desktop/images/06042025/17/18/image_06042025_17_18_01_7881.jpg
/home/pi/Desktop/images/06042025/17/17/image_06042025_17_17_01_5514.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181092","1350181080","1350181097","1350181085","1350181148","1350181138"],"photo_ids_order":["1350181080","1350181085","1350181092","1350181097","1350181138","1350181148"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4d6fd3f2b9610ac3941660e59e30dc2c.jpg","text":"TemporaryFile(/tmp/multipartBody2010103813807809128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963367367,"filename":"image_06042025_17_20_01_9404.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e519098c135c58496ec0ed7e9f2a0eaa.jpg","text":"TemporaryFile(/tmp/multipartBody6592958374039190747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963367367,"filename":"image_06042025_17_27_01_8085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/49b1477d8920b1ec351c560ae276ff5b.jpg","text":"TemporaryFile(/tmp/multipartBody9020674945864416227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963367367,"filename":"image_06042025_17_19_01_7194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b85f1d3d9bb80e870a4328e243abc308.jpg","text":"TemporaryFile(/tmp/multipartBody7150165464597025186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963367367,"filename":"image_06042025_17_22_02_2083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/de13ca5c43d25a80c8c1595c62c259f3.jpg","text":"TemporaryFile(/tmp/multipartBody3473691172652024966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963367367,"filename":"image_06042025_17_17_01_5514.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/978baf59792e06cff4d3c36332bec249.jpg","text":"TemporaryFile(/tmp/multipartBody2410349214310815866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963367367,"filename":"image_06042025_17_18_01_7881.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181092","file1":"1350181085","file0":"1350181080","file4":"1350181138","file5":"1350181148","file3":"1350181097"},"map_files_photo_id_array":[{"photo_id":"1350181148","filename":"file5"},{"photo_id":"1350181092","filename":"file2"},{"photo_id":"1350181138","filename":"file4"},{"photo_id":"1350181085","filename":"file1"},{"photo_id":"1350181080","filename":"file0"},{"photo_id":"1350181097","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350181092":["hashtag1","hashtag2"]},{"1350181080":["hashtag1","hashtag2"]},{"1350181097":["hashtag1","hashtag2"]},{"1350181085":["hashtag1","hashtag2"]},{"1350181148":["hashtag1","hashtag2"]},{"1350181138":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350181092, 1350181080, 1350181097, 1350181085, 1350181148, 1350181138)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.9340443611145 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:17:03.557701
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/17/10/image_06042025_17_10_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', 2), ('/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg', 2), ('/home/pi/Desktop/images/06042025/17/06/image_06042025_17_06_01_5690.jpg', 2), ('/home/pi/Desktop/images/06042025/17/01/image_06042025_17_01_01_6669.jpg', 2), ('/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/17/10/image_06042025_17_10_01_5939.jpg', '/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg', '/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg', '/home/pi/Desktop/images/06042025/17/06/image_06042025_17_06_01_5690.jpg', '/home/pi/Desktop/images/06042025/17/01/image_06042025_17_01_01_6669.jpg', '/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/17/10/image_06042025_17_10_01_5939.jpg
/home/pi/Desktop/images/06042025/17/08/image_06042025_17_08_01_4293.jpg
/home/pi/Desktop/images/06042025/17/07/image_06042025_17_07_01_2948.jpg
/home/pi/Desktop/images/06042025/17/06/image_06042025_17_06_01_5690.jpg
/home/pi/Desktop/images/06042025/17/01/image_06042025_17_01_01_6669.jpg
/home/pi/Desktop/images/06042025/16/59/image_06042025_16_59_01_6298.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181266","1350181289","1350181262","1350181259","1350181273","1350181279"],"photo_ids_order":["1350181259","1350181262","1350181266","1350181273","1350181279","1350181289"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1f1bf3fef0d02bed1036b2949d34e0a3.jpg","text":"TemporaryFile(/tmp/multipartBody6874726579062985579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963487453,"filename":"image_06042025_17_07_01_2948.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d7be26730245e4c45cd06d27c7ce2020.jpg","text":"TemporaryFile(/tmp/multipartBody8156470588761183209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963487453,"filename":"image_06042025_16_59_01_6298.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/34c407dad2cc65fd577a97db148bb7fc.jpg","text":"TemporaryFile(/tmp/multipartBody5314430536523071518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963487453,"filename":"image_06042025_17_08_01_4293.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3ae1921063427b52acb85a3169ad15ce.jpg","text":"TemporaryFile(/tmp/multipartBody725687538807096184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963487453,"filename":"image_06042025_17_10_01_5939.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4ea2d10a4cce68c1779fabdc3600fb28.jpg","text":"TemporaryFile(/tmp/multipartBody5061261683220339217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963487453,"filename":"image_06042025_17_06_01_5690.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0b5e62b0d26b3ab7eca4046196c7170b.jpg","text":"TemporaryFile(/tmp/multipartBody7137022252887294441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963487453,"filename":"image_06042025_17_01_01_6669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181266","file1":"1350181262","file0":"1350181259","file4":"1350181279","file5":"1350181289","file3":"1350181273"},"map_files_photo_id_array":[{"photo_id":"1350181289","filename":"file5"},{"photo_id":"1350181266","filename":"file2"},{"photo_id":"1350181279","filename":"file4"},{"photo_id":"1350181262","filename":"file1"},{"photo_id":"1350181259","filename":"file0"},{"photo_id":"1350181273","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350181266":["hashtag1","hashtag2"]},{"1350181289":["hashtag1","hashtag2"]},{"1350181262":["hashtag1","hashtag2"]},{"1350181259":["hashtag1","hashtag2"]},{"1350181273":["hashtag1","hashtag2"]},{"1350181279":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350181266, 1350181289, 1350181262, 1350181259, 1350181273, 1350181279)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.99443435668945 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:19:03.288046
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', 2), ('/home/pi/Desktop/images/06042025/16/56/image_06042025_16_56_02_0098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/54/image_06042025_16_54_01_5818.jpg', 2), ('/home/pi/Desktop/images/06042025/16/50/image_06042025_16_50_01_9838.jpg', 2), ('/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg', 2), ('/home/pi/Desktop/images/06042025/16/48/image_06042025_16_48_01_9076.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg', '/home/pi/Desktop/images/06042025/16/56/image_06042025_16_56_02_0098.jpg', '/home/pi/Desktop/images/06042025/16/54/image_06042025_16_54_01_5818.jpg', '/home/pi/Desktop/images/06042025/16/50/image_06042025_16_50_01_9838.jpg', '/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg', '/home/pi/Desktop/images/06042025/16/48/image_06042025_16_48_01_9076.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/16/57/image_06042025_16_57_01_5658.jpg
/home/pi/Desktop/images/06042025/16/56/image_06042025_16_56_02_0098.jpg
/home/pi/Desktop/images/06042025/16/54/image_06042025_16_54_01_5818.jpg
/home/pi/Desktop/images/06042025/16/50/image_06042025_16_50_01_9838.jpg
/home/pi/Desktop/images/06042025/16/49/image_06042025_16_49_01_7810.jpg
/home/pi/Desktop/images/06042025/16/48/image_06042025_16_48_01_9076.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181671","1350181571","1350181562","1350181576","1350181663","1350181567"],"photo_ids_order":["1350181562","1350181567","1350181571","1350181576","1350181663","1350181671"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/18ffba8df6e336e95b6b15374c7f0632.jpg","text":"TemporaryFile(/tmp/multipartBody2262286280157408691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963607162,"filename":"image_06042025_16_48_01_9076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/960fbb90c476d066a1bcffaa0a95b921.jpg","text":"TemporaryFile(/tmp/multipartBody4627789731045637515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963607162,"filename":"image_06042025_16_54_01_5818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5883d48f0a9e972ff7d204b2d58bd352.jpg","text":"TemporaryFile(/tmp/multipartBody698710807219494565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963607162,"filename":"image_06042025_16_57_01_5658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f46ff1a7442a5b821ef5d6dd3e6d54b3.jpg","text":"TemporaryFile(/tmp/multipartBody4499044978537240001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963607162,"filename":"image_06042025_16_50_01_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/5b3904172186b6390c18af964087e0b7.jpg","text":"TemporaryFile(/tmp/multipartBody1879032844304051760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963607162,"filename":"image_06042025_16_49_01_7810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e20275f680e86b56c2a8d6a56cbb95c.jpg","text":"TemporaryFile(/tmp/multipartBody5952517323591405735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963607162,"filename":"image_06042025_16_56_02_0098.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181571","file1":"1350181567","file0":"1350181562","file4":"1350181663","file5":"1350181671","file3":"1350181576"},"map_files_photo_id_array":[{"photo_id":"1350181671","filename":"file5"},{"photo_id":"1350181571","filename":"file2"},{"photo_id":"1350181663","filename":"file4"},{"photo_id":"1350181567","filename":"file1"},{"photo_id":"1350181562","filename":"file0"},{"photo_id":"1350181576","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350181671":["hashtag1","hashtag2"]},{"1350181571":["hashtag1","hashtag2"]},{"1350181562":["hashtag1","hashtag2"]},{"1350181576":["hashtag1","hashtag2"]},{"1350181663":["hashtag1","hashtag2"]},{"1350181567":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350181671, 1350181571, 1350181562, 1350181576, 1350181663, 1350181567)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.01446509361267 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:21:03.596142
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/16/44/image_06042025_16_44_01_5012.jpg', 2), ('/home/pi/Desktop/images/06042025/16/42/image_06042025_16_42_01_3797.jpg', 2), ('/home/pi/Desktop/images/06042025/16/40/image_06042025_16_40_01_6635.jpg', 2), ('/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg', 2), ('/home/pi/Desktop/images/06042025/16/36/image_06042025_16_36_02_2352.jpg', 2), ('/home/pi/Desktop/images/06042025/16/35/image_06042025_16_35_02_1570.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/16/44/image_06042025_16_44_01_5012.jpg', '/home/pi/Desktop/images/06042025/16/42/image_06042025_16_42_01_3797.jpg', '/home/pi/Desktop/images/06042025/16/40/image_06042025_16_40_01_6635.jpg', '/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg', '/home/pi/Desktop/images/06042025/16/36/image_06042025_16_36_02_2352.jpg', '/home/pi/Desktop/images/06042025/16/35/image_06042025_16_35_02_1570.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/16/44/image_06042025_16_44_01_5012.jpg
/home/pi/Desktop/images/06042025/16/42/image_06042025_16_42_01_3797.jpg
/home/pi/Desktop/images/06042025/16/40/image_06042025_16_40_01_6635.jpg
/home/pi/Desktop/images/06042025/16/37/image_06042025_16_37_01_2544.jpg
/home/pi/Desktop/images/06042025/16/36/image_06042025_16_36_02_2352.jpg
/home/pi/Desktop/images/06042025/16/35/image_06042025_16_35_02_1570.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182001","1350182010","1350182105","1350182005","1350181939","1350182085"],"photo_ids_order":["1350181939","1350182001","1350182005","1350182010","1350182085","1350182105"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c5c323044361453d37a6f0652f46cc8f.jpg","text":"TemporaryFile(/tmp/multipartBody4961776320255598738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963727458,"filename":"image_06042025_16_42_01_3797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fc180fa78ea3cbe499f8d0dc5f0f27f6.jpg","text":"TemporaryFile(/tmp/multipartBody8498527673868571006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963727458,"filename":"image_06042025_16_37_01_2544.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/35e792831cb26129039a59c9ec256635.jpg","text":"TemporaryFile(/tmp/multipartBody2479189657118310549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963727458,"filename":"image_06042025_16_35_02_1570.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c4860b0008292e22a125bf8377030188.jpg","text":"TemporaryFile(/tmp/multipartBody3630977967754412151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963727458,"filename":"image_06042025_16_40_01_6635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/863fb9fb12fff1510290b3b194b9d77d.jpg","text":"TemporaryFile(/tmp/multipartBody7285698538799467558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963727458,"filename":"image_06042025_16_44_01_5012.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a3ed7a93ffcac078179357594390631c.jpg","text":"TemporaryFile(/tmp/multipartBody7103624575539351234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963727458,"filename":"image_06042025_16_36_02_2352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182005","file1":"1350182001","file0":"1350181939","file4":"1350182085","file5":"1350182105","file3":"1350182010"},"map_files_photo_id_array":[{"photo_id":"1350182105","filename":"file5"},{"photo_id":"1350182005","filename":"file2"},{"photo_id":"1350182085","filename":"file4"},{"photo_id":"1350182001","filename":"file1"},{"photo_id":"1350181939","filename":"file0"},{"photo_id":"1350182010","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350182001":["hashtag1","hashtag2"]},{"1350182010":["hashtag1","hashtag2"]},{"1350182105":["hashtag1","hashtag2"]},{"1350182005":["hashtag1","hashtag2"]},{"1350181939":["hashtag1","hashtag2"]},{"1350182085":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350182001, 1350182010, 1350182105, 1350182005, 1350181939, 1350182085)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.75356197357178 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:23:03.119152
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg', 2), ('/home/pi/Desktop/images/06042025/16/32/image_06042025_16_32_01_5688.jpg', 2), ('/home/pi/Desktop/images/06042025/16/18/image_06042025_16_18_02_3590.jpg', 2), ('/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', 2), ('/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', 2), ('/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg', '/home/pi/Desktop/images/06042025/16/32/image_06042025_16_32_01_5688.jpg', '/home/pi/Desktop/images/06042025/16/18/image_06042025_16_18_02_3590.jpg', '/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg', '/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg', '/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/16/33/image_06042025_16_33_01_2738.jpg
/home/pi/Desktop/images/06042025/16/32/image_06042025_16_32_01_5688.jpg
/home/pi/Desktop/images/06042025/16/18/image_06042025_16_18_02_3590.jpg
/home/pi/Desktop/images/06042025/16/17/image_06042025_16_17_01_3978.jpg
/home/pi/Desktop/images/06042025/16/15/image_06042025_16_15_01_4600.jpg
/home/pi/Desktop/images/06042025/16/14/image_06042025_16_14_01_2457.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182331","1350182303","1350182228","1350182201","1350182326","1350182280"],"photo_ids_order":["1350182201","1350182228","1350182280","1350182303","1350182326","1350182331"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a03695e6d1178e2fd8bab79c78fff81c.jpg","text":"TemporaryFile(/tmp/multipartBody7461181483825562944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963847092,"filename":"image_06042025_16_14_01_2457.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4cdec0c682ea06d6e86ddeae4510b55c.jpg","text":"TemporaryFile(/tmp/multipartBody3862609286071890126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963847092,"filename":"image_06042025_16_17_01_3978.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bfa390e43f2c8c69ac3154776844bc03.jpg","text":"TemporaryFile(/tmp/multipartBody3520667361319665293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963847092,"filename":"image_06042025_16_32_01_5688.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/79e535cb0f15bbaae514ae1334c373e7.jpg","text":"TemporaryFile(/tmp/multipartBody3715180285967351067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963847092,"filename":"image_06042025_16_33_01_2738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4ad482d7bfa8cf84ff1ee27d47deb154.jpg","text":"TemporaryFile(/tmp/multipartBody3621901001704701266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963847092,"filename":"image_06042025_16_15_01_4600.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f6d4f113cb8f6d3f95a4dd2574533149.jpg","text":"TemporaryFile(/tmp/multipartBody6866415624906514500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963847092,"filename":"image_06042025_16_18_02_3590.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182280","file1":"1350182228","file0":"1350182201","file4":"1350182326","file5":"1350182331","file3":"1350182303"},"map_files_photo_id_array":[{"photo_id":"1350182331","filename":"file5"},{"photo_id":"1350182280","filename":"file2"},{"photo_id":"1350182326","filename":"file4"},{"photo_id":"1350182228","filename":"file1"},{"photo_id":"1350182201","filename":"file0"},{"photo_id":"1350182303","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350182331":["hashtag1","hashtag2"]},{"1350182303":["hashtag1","hashtag2"]},{"1350182228":["hashtag1","hashtag2"]},{"1350182201":["hashtag1","hashtag2"]},{"1350182326":["hashtag1","hashtag2"]},{"1350182280":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350182331, 1350182303, 1350182228, 1350182201, 1350182326, 1350182280)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.4346284866333 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:25:07.155084
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2), ('/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', 2), ('/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', '/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', '/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', '/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', '/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', '/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg
/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg
/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg
/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg
/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg
/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:26:09.979519
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', 2), ('/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', 2), ('/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', 2), ('/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', 2), ('/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', 2), ('/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg', '/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg', '/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg', '/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg', '/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg', '/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/16/13/image_06042025_16_13_01_3520.jpg
/home/pi/Desktop/images/06042025/16/12/image_06042025_16_12_01_9657.jpg
/home/pi/Desktop/images/06042025/16/02/image_06042025_16_02_01_8098.jpg
/home/pi/Desktop/images/06042025/16/01/image_06042025_16_01_01_9142.jpg
/home/pi/Desktop/images/06042025/16/00/image_06042025_16_00_01_2532.jpg
/home/pi/Desktop/images/06042025/15/58/image_06042025_15_58_02_1356.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182639","1350182636","1350182624","1350182662","1350182644","1350182632"],"photo_ids_order":["1350182624","1350182632","1350182636","1350182639","1350182644","1350182662"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0a61e1ad55e466152bfff0b3ccf67c04.jpg","text":"TemporaryFile(/tmp/multipartBody8881670881165879906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964049093,"filename":"image_06042025_16_01_01_9142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c35759edf90ac4336bcc84979b82d34d.jpg","text":"TemporaryFile(/tmp/multipartBody4896374978825305440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964049093,"filename":"image_06042025_16_02_01_8098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0b4bbd3147b0329d7e9c16cd4ea5ff66.jpg","text":"TemporaryFile(/tmp/multipartBody7523512240520223468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964049093,"filename":"image_06042025_16_13_01_3520.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d4d64791a0ce948f60640a99928ec2d7.jpg","text":"TemporaryFile(/tmp/multipartBody1169798959303894093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964049093,"filename":"image_06042025_15_58_02_1356.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9f58dd010971234b38ff4b1cc5bf1352.jpg","text":"TemporaryFile(/tmp/multipartBody933010309802785274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964049093,"filename":"image_06042025_16_00_01_2532.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/897aae3d08a661803cd991f5a08044c9.jpg","text":"TemporaryFile(/tmp/multipartBody2720731311198060284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964049093,"filename":"image_06042025_16_12_01_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182636","file1":"1350182632","file0":"1350182624","file4":"1350182644","file5":"1350182662","file3":"1350182639"},"map_files_photo_id_array":[{"photo_id":"1350182662","filename":"file5"},{"photo_id":"1350182636","filename":"file2"},{"photo_id":"1350182644","filename":"file4"},{"photo_id":"1350182632","filename":"file1"},{"photo_id":"1350182624","filename":"file0"},{"photo_id":"1350182639","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350182639":["hashtag1","hashtag2"]},{"1350182636":["hashtag1","hashtag2"]},{"1350182624":["hashtag1","hashtag2"]},{"1350182662":["hashtag1","hashtag2"]},{"1350182644":["hashtag1","hashtag2"]},{"1350182632":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350182639, 1350182636, 1350182624, 1350182662, 1350182644, 1350182632)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.7032744884491 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:28:02.828796
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg', 2), ('/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg', 2), ('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2), ('/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg', '/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg', '/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', '/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', '/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', '/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg
/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg
/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg
/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg
/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg
/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 3.7439959049224854 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 : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:29:03.976083
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg', 2), ('/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg', 2), ('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2), ('/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg', '/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg', '/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', '/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', '/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', '/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg
/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg
/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg
/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg
/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg
/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.858228921890259 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 : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:30:03.625621
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg', 2), ('/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg', 2), ('/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', 2), ('/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', 2), ('/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', 2), ('/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg', '/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg', '/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg', '/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg', '/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg', '/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/27/image_06042025_20_27_02_7075.jpg
/home/pi/Desktop/images/06042025/18/58/image_06042025_18_58_01_3881.jpg
/home/pi/Desktop/images/06042025/15/57/image_06042025_15_57_01_3292.jpg
/home/pi/Desktop/images/06042025/15/56/image_06042025_15_56_01_5471.jpg
/home/pi/Desktop/images/06042025/15/53/image_06042025_15_53_01_3977.jpg
/home/pi/Desktop/images/06042025/15/50/image_06042025_15_50_01_4013.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183009","1350182925","1350182937","1350183002","1350182917","1350182943"],"photo_ids_order":["1350182917","1350182925","1350182937","1350182943","1350183002","1350183009"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5c57786c5256f5380b7e248178abb6bc.jpg","text":"TemporaryFile(/tmp/multipartBody9149948411288832384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964266457,"filename":"image_06042025_15_50_01_4013.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8620f82d835508e6df4fa0a219756c7e.jpg","text":"TemporaryFile(/tmp/multipartBody2066313072142466420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964266457,"filename":"image_06042025_18_58_01_3881.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/811fb6a9c034a52bdb628aec475c46a8.jpg","text":"TemporaryFile(/tmp/multipartBody896708816692851514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964266457,"filename":"image_06042025_15_57_01_3292.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/51eeafaed8a50e50eedf06b996b79844.jpg","text":"TemporaryFile(/tmp/multipartBody4200983371732617598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964266457,"filename":"image_06042025_15_53_01_3977.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6ffdcbb2aaaa30b681787a9f63ec485f.jpg","text":"TemporaryFile(/tmp/multipartBody2020932435823937037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964266457,"filename":"image_06042025_20_27_02_7075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/edb678410d293d68478b3ce2d1ec8948.jpg","text":"TemporaryFile(/tmp/multipartBody809137968757100798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964266457,"filename":"image_06042025_15_56_01_5471.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182937","file1":"1350182925","file0":"1350182917","file4":"1350183002","file5":"1350183009","file3":"1350182943"},"map_files_photo_id_array":[{"photo_id":"1350183009","filename":"file5"},{"photo_id":"1350182937","filename":"file2"},{"photo_id":"1350183002","filename":"file4"},{"photo_id":"1350182925","filename":"file1"},{"photo_id":"1350182917","filename":"file0"},{"photo_id":"1350182943","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183009":["hashtag1","hashtag2"]},{"1350182925":["hashtag1","hashtag2"]},{"1350182937":["hashtag1","hashtag2"]},{"1350183002":["hashtag1","hashtag2"]},{"1350182917":["hashtag1","hashtag2"]},{"1350182943":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183009, 1350182925, 1350182937, 1350183002, 1350182917, 1350182943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.433335065841675 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:32:03.108872
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/28/image_06042025_20_28_02_2115.jpg', 2), ('/home/pi/Desktop/images/06042025/15/48/image_06042025_15_48_02_0067.jpg', 2), ('/home/pi/Desktop/images/06042025/15/47/image_06042025_15_47_02_0595.jpg', 2), ('/home/pi/Desktop/images/06042025/15/45/image_06042025_15_45_02_0103.jpg', 2), ('/home/pi/Desktop/images/06042025/15/38/image_06042025_15_38_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/28/image_06042025_20_28_02_2115.jpg', '/home/pi/Desktop/images/06042025/15/48/image_06042025_15_48_02_0067.jpg', '/home/pi/Desktop/images/06042025/15/47/image_06042025_15_47_02_0595.jpg', '/home/pi/Desktop/images/06042025/15/45/image_06042025_15_45_02_0103.jpg', '/home/pi/Desktop/images/06042025/15/38/image_06042025_15_38_01_6271.jpg', '/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/28/image_06042025_20_28_02_2115.jpg
/home/pi/Desktop/images/06042025/15/48/image_06042025_15_48_02_0067.jpg
/home/pi/Desktop/images/06042025/15/47/image_06042025_15_47_02_0595.jpg
/home/pi/Desktop/images/06042025/15/45/image_06042025_15_45_02_0103.jpg
/home/pi/Desktop/images/06042025/15/38/image_06042025_15_38_01_6271.jpg
/home/pi/Desktop/images/06042025/15/34/image_06042025_15_34_01_9894.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183089","1350183080","1350183053","1350183107","1350183069","1350183048"],"photo_ids_order":["1350183048","1350183053","1350183069","1350183080","1350183089","1350183107"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/58f2803c2b80cb2b627756668c33fcfb.jpg","text":"TemporaryFile(/tmp/multipartBody8079727040571518655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964386929,"filename":"image_06042025_15_38_01_6271.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4426fbefbc5cf72788a06b8129569e00.jpg","text":"TemporaryFile(/tmp/multipartBody6615670988501833153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964386929,"filename":"image_06042025_15_45_02_0103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d76848dfa1b5b1b9cc60b78d88e26b5b.jpg","text":"TemporaryFile(/tmp/multipartBody9039453393602233999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964386929,"filename":"image_06042025_15_48_02_0067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ea627e6c5cbf551b16113f8878f3eac6.jpg","text":"TemporaryFile(/tmp/multipartBody5570738399533182845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964386929,"filename":"image_06042025_15_34_01_9894.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b5003007ec4d5daf19c09795a171cba1.jpg","text":"TemporaryFile(/tmp/multipartBody6247553105053858513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964386929,"filename":"image_06042025_15_47_02_0595.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ad5d36bace19a6774a9e02bf314f17df.jpg","text":"TemporaryFile(/tmp/multipartBody5875262978761843797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964386929,"filename":"image_06042025_20_28_02_2115.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183069","file1":"1350183053","file0":"1350183048","file4":"1350183089","file5":"1350183107","file3":"1350183080"},"map_files_photo_id_array":[{"photo_id":"1350183107","filename":"file5"},{"photo_id":"1350183069","filename":"file2"},{"photo_id":"1350183089","filename":"file4"},{"photo_id":"1350183053","filename":"file1"},{"photo_id":"1350183048","filename":"file0"},{"photo_id":"1350183080","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183089":["hashtag1","hashtag2"]},{"1350183080":["hashtag1","hashtag2"]},{"1350183053":["hashtag1","hashtag2"]},{"1350183107":["hashtag1","hashtag2"]},{"1350183069":["hashtag1","hashtag2"]},{"1350183048":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183089, 1350183080, 1350183053, 1350183107, 1350183069, 1350183048)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.76073718070984 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:34:03.581145
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/32/image_06042025_20_32_01_7932.jpg', 2), ('/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', 2), ('/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', 2), ('/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg', 2), ('/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', 2), ('/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/32/image_06042025_20_32_01_7932.jpg', '/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg', '/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg', '/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg', '/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg', '/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/32/image_06042025_20_32_01_7932.jpg
/home/pi/Desktop/images/06042025/15/33/image_06042025_15_33_03_1446.jpg
/home/pi/Desktop/images/06042025/15/31/image_06042025_15_31_49_7788.jpg
/home/pi/Desktop/images/06042025/15/30/image_06042025_15_30_25_4993.jpg
/home/pi/Desktop/images/06042025/15/27/image_06042025_15_27_12_1846.jpg
/home/pi/Desktop/images/06042025/14/03/image_06042025_14_03_02_2061.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183185","1350183203","1350183195","1350183189","1350183183","1350183210"],"photo_ids_order":["1350183183","1350183185","1350183189","1350183195","1350183203","1350183210"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af8fd48e6a97c33afaf2c8c4a5a7ee3c.jpg","text":"TemporaryFile(/tmp/multipartBody3278578859417715112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964507493,"filename":"image_06042025_15_33_03_1446.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d1faa281b222a7e8c578c253ce3ce79.jpg","text":"TemporaryFile(/tmp/multipartBody8728226873367095493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964507493,"filename":"image_06042025_15_27_12_1846.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3d91b74e95cee5488fa2fdbb830da737.jpg","text":"TemporaryFile(/tmp/multipartBody7014285966513480171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964507493,"filename":"image_06042025_15_30_25_4993.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/101b9c89da59b0026b59e64e933093bf.jpg","text":"TemporaryFile(/tmp/multipartBody2709031730414782598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964507493,"filename":"image_06042025_15_31_49_7788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0de87c0aab6072623f061295654cec80.jpg","text":"TemporaryFile(/tmp/multipartBody583257063607164341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964507493,"filename":"image_06042025_20_32_01_7932.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/479b50aeb1c1d38dc7ba6502e4c03e5a.jpg","text":"TemporaryFile(/tmp/multipartBody6476433820296692991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964507493,"filename":"image_06042025_14_03_02_2061.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183189","file1":"1350183185","file0":"1350183183","file4":"1350183203","file5":"1350183210","file3":"1350183195"},"map_files_photo_id_array":[{"photo_id":"1350183210","filename":"file5"},{"photo_id":"1350183189","filename":"file2"},{"photo_id":"1350183203","filename":"file4"},{"photo_id":"1350183185","filename":"file1"},{"photo_id":"1350183183","filename":"file0"},{"photo_id":"1350183195","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183185":["hashtag1","hashtag2"]},{"1350183203":["hashtag1","hashtag2"]},{"1350183195":["hashtag1","hashtag2"]},{"1350183189":["hashtag1","hashtag2"]},{"1350183183":["hashtag1","hashtag2"]},{"1350183210":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183185, 1350183203, 1350183195, 1350183189, 1350183183, 1350183210)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.979731798172 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:36:03.481183
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', 2), ('/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', 2), ('/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', 2), ('/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', 2), ('/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', 2), ('/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg', '/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg', '/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg', '/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg', '/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg', '/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/14/02/image_06042025_14_02_02_0193.jpg
/home/pi/Desktop/images/06042025/14/01/image_06042025_14_01_02_1137.jpg
/home/pi/Desktop/images/06042025/14/00/image_06042025_14_00_01_8426.jpg
/home/pi/Desktop/images/06042025/13/58/image_06042025_13_58_01_7167.jpg
/home/pi/Desktop/images/06042025/13/56/image_06042025_13_56_01_5485.jpg
/home/pi/Desktop/images/06042025/13/55/image_06042025_13_55_01_5424.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183289","1350183265","1350183253","1350183285","1350183252","1350183258"],"photo_ids_order":["1350183252","1350183253","1350183258","1350183265","1350183285","1350183289"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/51a14af0505a1eaa88d4917607f2ea4e.jpg","text":"TemporaryFile(/tmp/multipartBody7122134383482120473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964627679,"filename":"image_06042025_13_55_01_5424.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff78de36773684d3b183ef62fee4a650.jpg","text":"TemporaryFile(/tmp/multipartBody3870885958403107175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964627679,"filename":"image_06042025_13_58_01_7167.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/497f6baa4665245e91ad6aeb7876615c.jpg","text":"TemporaryFile(/tmp/multipartBody9148042750200634481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964627679,"filename":"image_06042025_14_01_02_1137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33247c15e7235dbd18323cea7dcf4dd8.jpg","text":"TemporaryFile(/tmp/multipartBody7406824212225762659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964627679,"filename":"image_06042025_13_56_01_5485.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3bd2a56709e1e20ab3d453ccc333b1fd.jpg","text":"TemporaryFile(/tmp/multipartBody316878361406727806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964627679,"filename":"image_06042025_14_02_02_0193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5c35cbcd25bc0cac2a44a4cb5fffad1d.jpg","text":"TemporaryFile(/tmp/multipartBody3521034257883379801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964627679,"filename":"image_06042025_14_00_01_8426.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183258","file1":"1350183253","file0":"1350183252","file4":"1350183285","file5":"1350183289","file3":"1350183265"},"map_files_photo_id_array":[{"photo_id":"1350183289","filename":"file5"},{"photo_id":"1350183258","filename":"file2"},{"photo_id":"1350183285","filename":"file4"},{"photo_id":"1350183253","filename":"file1"},{"photo_id":"1350183252","filename":"file0"},{"photo_id":"1350183265","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183289":["hashtag1","hashtag2"]},{"1350183265":["hashtag1","hashtag2"]},{"1350183253":["hashtag1","hashtag2"]},{"1350183285":["hashtag1","hashtag2"]},{"1350183252":["hashtag1","hashtag2"]},{"1350183258":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183289, 1350183265, 1350183253, 1350183285, 1350183252, 1350183258)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.79977250099182 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:38:03.149995
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/33/image_06042025_20_33_01_6907.jpg', 2), ('/home/pi/Desktop/images/06042025/13/54/image_06042025_13_54_01_4955.jpg', 2), ('/home/pi/Desktop/images/06042025/13/51/image_06042025_13_51_01_9676.jpg', 2), ('/home/pi/Desktop/images/06042025/13/50/image_06042025_13_50_01_5023.jpg', 2), ('/home/pi/Desktop/images/06042025/13/49/image_06042025_13_49_01_6060.jpg', 2), ('/home/pi/Desktop/images/06042025/13/48/image_06042025_13_48_02_2243.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/33/image_06042025_20_33_01_6907.jpg', '/home/pi/Desktop/images/06042025/13/54/image_06042025_13_54_01_4955.jpg', '/home/pi/Desktop/images/06042025/13/51/image_06042025_13_51_01_9676.jpg', '/home/pi/Desktop/images/06042025/13/50/image_06042025_13_50_01_5023.jpg', '/home/pi/Desktop/images/06042025/13/49/image_06042025_13_49_01_6060.jpg', '/home/pi/Desktop/images/06042025/13/48/image_06042025_13_48_02_2243.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/33/image_06042025_20_33_01_6907.jpg
/home/pi/Desktop/images/06042025/13/54/image_06042025_13_54_01_4955.jpg
/home/pi/Desktop/images/06042025/13/51/image_06042025_13_51_01_9676.jpg
/home/pi/Desktop/images/06042025/13/50/image_06042025_13_50_01_5023.jpg
/home/pi/Desktop/images/06042025/13/49/image_06042025_13_49_01_6060.jpg
/home/pi/Desktop/images/06042025/13/48/image_06042025_13_48_02_2243.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183452","1350183373","1350183382","1350183445","1350183439","1350183420"],"photo_ids_order":["1350183373","1350183382","1350183420","1350183439","1350183445","1350183452"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e627c2a7ec9b3286690feda09923d961.jpg","text":"TemporaryFile(/tmp/multipartBody5863098203164324428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964747099,"filename":"image_06042025_13_48_02_2243.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25877305848d58b9f986598f9e1b5646.jpg","text":"TemporaryFile(/tmp/multipartBody6298489869831616479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964747099,"filename":"image_06042025_20_33_01_6907.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/593d3b79fdf912997fd06d86fa5fa455.jpg","text":"TemporaryFile(/tmp/multipartBody353839090605212043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964747099,"filename":"image_06042025_13_54_01_4955.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da8ba904740f1fcd6ebf34373ca15548.jpg","text":"TemporaryFile(/tmp/multipartBody1476286922109151905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964747099,"filename":"image_06042025_13_49_01_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/16b5c8146791075f7a705c8415096b74.jpg","text":"TemporaryFile(/tmp/multipartBody204740062803225477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964747099,"filename":"image_06042025_13_50_01_5023.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c40856f7981ffeaba62746c25edf17e6.jpg","text":"TemporaryFile(/tmp/multipartBody8275310037375674853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964747099,"filename":"image_06042025_13_51_01_9676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183420","file1":"1350183382","file0":"1350183373","file4":"1350183445","file5":"1350183452","file3":"1350183439"},"map_files_photo_id_array":[{"photo_id":"1350183452","filename":"file5"},{"photo_id":"1350183420","filename":"file2"},{"photo_id":"1350183445","filename":"file4"},{"photo_id":"1350183382","filename":"file1"},{"photo_id":"1350183373","filename":"file0"},{"photo_id":"1350183439","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183452":["hashtag1","hashtag2"]},{"1350183373":["hashtag1","hashtag2"]},{"1350183382":["hashtag1","hashtag2"]},{"1350183445":["hashtag1","hashtag2"]},{"1350183439":["hashtag1","hashtag2"]},{"1350183420":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183452, 1350183373, 1350183382, 1350183445, 1350183439, 1350183420)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.237571477890015 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:40:02.832907
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/39/image_06042025_20_39_01_6998.jpg', 2), ('/home/pi/Desktop/images/06042025/20/38/image_06042025_20_38_01_8272.jpg', 2), ('/home/pi/Desktop/images/06042025/13/47/image_06042025_13_47_01_2517.jpg', 2), ('/home/pi/Desktop/images/06042025/13/43/image_06042025_13_43_01_9690.jpg', 2), ('/home/pi/Desktop/images/06042025/13/42/image_06042025_13_42_01_6699.jpg', 2), ('/home/pi/Desktop/images/06042025/13/34/image_06042025_13_34_01_9514.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/39/image_06042025_20_39_01_6998.jpg', '/home/pi/Desktop/images/06042025/20/38/image_06042025_20_38_01_8272.jpg', '/home/pi/Desktop/images/06042025/13/47/image_06042025_13_47_01_2517.jpg', '/home/pi/Desktop/images/06042025/13/43/image_06042025_13_43_01_9690.jpg', '/home/pi/Desktop/images/06042025/13/42/image_06042025_13_42_01_6699.jpg', '/home/pi/Desktop/images/06042025/13/34/image_06042025_13_34_01_9514.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/39/image_06042025_20_39_01_6998.jpg
/home/pi/Desktop/images/06042025/20/38/image_06042025_20_38_01_8272.jpg
/home/pi/Desktop/images/06042025/13/47/image_06042025_13_47_01_2517.jpg
/home/pi/Desktop/images/06042025/13/43/image_06042025_13_43_01_9690.jpg
/home/pi/Desktop/images/06042025/13/42/image_06042025_13_42_01_6699.jpg
/home/pi/Desktop/images/06042025/13/34/image_06042025_13_34_01_9514.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183749","1350183734","1350183722","1350183719","1350183799","1350183787"],"photo_ids_order":["1350183719","1350183722","1350183734","1350183749","1350183787","1350183799"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a41c411496371d7b5ef7f4e77f812f1c.jpg","text":"TemporaryFile(/tmp/multipartBody8304539386193996594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964866579,"filename":"image_06042025_13_43_01_9690.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/175fb6480c915545314d96e93b556fcf.jpg","text":"TemporaryFile(/tmp/multipartBody832065494077537215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964866579,"filename":"image_06042025_13_47_01_2517.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/66bb685c2f24f1622e943c90362c1aa5.jpg","text":"TemporaryFile(/tmp/multipartBody762472818780846974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964866579,"filename":"image_06042025_20_38_01_8272.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c9d1a925011afb17dc3530c5d19e9d11.jpg","text":"TemporaryFile(/tmp/multipartBody8258911570431162547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964866579,"filename":"image_06042025_20_39_01_6998.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bfe8d53caa4903e3cf33433a93636be5.jpg","text":"TemporaryFile(/tmp/multipartBody1516423134618319659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964866579,"filename":"image_06042025_13_34_01_9514.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7d70bbae4ab5aa7ccc8334a7ffe8ef97.jpg","text":"TemporaryFile(/tmp/multipartBody4263730577412850423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964866579,"filename":"image_06042025_13_42_01_6699.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183734","file1":"1350183722","file0":"1350183719","file4":"1350183787","file5":"1350183799","file3":"1350183749"},"map_files_photo_id_array":[{"photo_id":"1350183799","filename":"file5"},{"photo_id":"1350183734","filename":"file2"},{"photo_id":"1350183787","filename":"file4"},{"photo_id":"1350183722","filename":"file1"},{"photo_id":"1350183719","filename":"file0"},{"photo_id":"1350183749","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183749":["hashtag1","hashtag2"]},{"1350183734":["hashtag1","hashtag2"]},{"1350183722":["hashtag1","hashtag2"]},{"1350183719":["hashtag1","hashtag2"]},{"1350183799":["hashtag1","hashtag2"]},{"1350183787":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183749, 1350183734, 1350183722, 1350183719, 1350183799, 1350183787)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.917457580566406 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:42:03.250855
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/41/image_06042025_20_41_01_3043.jpg', 2), ('/home/pi/Desktop/images/06042025/20/40/image_06042025_20_40_01_5681.jpg', 2), ('/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg', 2), ('/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg', 2), ('/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', 2), ('/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/41/image_06042025_20_41_01_3043.jpg', '/home/pi/Desktop/images/06042025/20/40/image_06042025_20_40_01_5681.jpg', '/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg', '/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg', '/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg', '/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/41/image_06042025_20_41_01_3043.jpg
/home/pi/Desktop/images/06042025/20/40/image_06042025_20_40_01_5681.jpg
/home/pi/Desktop/images/06042025/13/33/image_06042025_13_33_01_8478.jpg
/home/pi/Desktop/images/06042025/13/32/image_06042025_13_32_01_5203.jpg
/home/pi/Desktop/images/06042025/13/31/image_06042025_13_31_01_5093.jpg
/home/pi/Desktop/images/06042025/13/30/image_06042025_13_30_02_0193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183920","1350183926","1350183913","1350183891","1350183903","1350183896"],"photo_ids_order":["1350183891","1350183896","1350183903","1350183913","1350183920","1350183926"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/572c745608d94ea46ce036e64b2fb6cd.jpg","text":"TemporaryFile(/tmp/multipartBody7526962920929095773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964986989,"filename":"image_06042025_13_31_01_5093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2892ee3c04f4a672ea29f4486f239e07.jpg","text":"TemporaryFile(/tmp/multipartBody5269311591596874602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964986989,"filename":"image_06042025_13_30_02_0193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cca362ae0cb3c44cf468f7d96118e6e0.jpg","text":"TemporaryFile(/tmp/multipartBody8080293072770421976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964986989,"filename":"image_06042025_13_32_01_5203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/04d093873d9f12043c7581fed42d7409.jpg","text":"TemporaryFile(/tmp/multipartBody1462361534253065702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964986989,"filename":"image_06042025_20_41_01_3043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/85bd5d89bb9cd8f0dbf765b912fcbe92.jpg","text":"TemporaryFile(/tmp/multipartBody1601130233927791894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964986989,"filename":"image_06042025_13_33_01_8478.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/994586a4a8a9c5af0c451d48af593276.jpg","text":"TemporaryFile(/tmp/multipartBody9152508932123654687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964986989,"filename":"image_06042025_20_40_01_5681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183903","file1":"1350183896","file0":"1350183891","file4":"1350183920","file5":"1350183926","file3":"1350183913"},"map_files_photo_id_array":[{"photo_id":"1350183926","filename":"file5"},{"photo_id":"1350183903","filename":"file2"},{"photo_id":"1350183920","filename":"file4"},{"photo_id":"1350183896","filename":"file1"},{"photo_id":"1350183891","filename":"file0"},{"photo_id":"1350183913","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183920":["hashtag1","hashtag2"]},{"1350183926":["hashtag1","hashtag2"]},{"1350183913":["hashtag1","hashtag2"]},{"1350183891":["hashtag1","hashtag2"]},{"1350183903":["hashtag1","hashtag2"]},{"1350183896":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183920, 1350183926, 1350183913, 1350183891, 1350183903, 1350183896)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.12473940849304 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:44:03.621933
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/13/26/image_06042025_13_26_02_0228.jpg', 2), ('/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', 2), ('/home/pi/Desktop/images/06042025/13/22/image_06042025_13_22_01_8970.jpg', 2), ('/home/pi/Desktop/images/06042025/13/21/image_06042025_13_21_01_9235.jpg', 2), ('/home/pi/Desktop/images/06042025/13/20/image_06042025_13_20_01_5887.jpg', 2), ('/home/pi/Desktop/images/06042025/13/18/image_06042025_13_18_02_0834.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/13/26/image_06042025_13_26_02_0228.jpg', '/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg', '/home/pi/Desktop/images/06042025/13/22/image_06042025_13_22_01_8970.jpg', '/home/pi/Desktop/images/06042025/13/21/image_06042025_13_21_01_9235.jpg', '/home/pi/Desktop/images/06042025/13/20/image_06042025_13_20_01_5887.jpg', '/home/pi/Desktop/images/06042025/13/18/image_06042025_13_18_02_0834.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/13/26/image_06042025_13_26_02_0228.jpg
/home/pi/Desktop/images/06042025/13/24/image_06042025_13_24_01_7099.jpg
/home/pi/Desktop/images/06042025/13/22/image_06042025_13_22_01_8970.jpg
/home/pi/Desktop/images/06042025/13/21/image_06042025_13_21_01_9235.jpg
/home/pi/Desktop/images/06042025/13/20/image_06042025_13_20_01_5887.jpg
/home/pi/Desktop/images/06042025/13/18/image_06042025_13_18_02_0834.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183992","1350184001","1350184025","1350183988","1350184015","1350184020"],"photo_ids_order":["1350183988","1350183992","1350184001","1350184015","1350184020","1350184025"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5d9f9b92ab1ba24f1a1e825f282b983f.jpg","text":"TemporaryFile(/tmp/multipartBody8580174316437311809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965107781,"filename":"image_06042025_13_24_01_7099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/038b8a53b055eb0a3fce6f7d32faa280.jpg","text":"TemporaryFile(/tmp/multipartBody974382822474911719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965107781,"filename":"image_06042025_13_22_01_8970.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4a3e2dc1e25acafb4d560642636af458.jpg","text":"TemporaryFile(/tmp/multipartBody7165791594033464763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965107781,"filename":"image_06042025_13_18_02_0834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f7b7d919a25b505bd90eba7582baf69d.jpg","text":"TemporaryFile(/tmp/multipartBody7109078737697876460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965107781,"filename":"image_06042025_13_26_02_0228.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b90ec6f771bec0b88d2fdf56b397267a.jpg","text":"TemporaryFile(/tmp/multipartBody7488802745645513498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965107781,"filename":"image_06042025_13_21_01_9235.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/405434e296cbf8d1f625918ee6c00234.jpg","text":"TemporaryFile(/tmp/multipartBody7282586756868142433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965107781,"filename":"image_06042025_13_20_01_5887.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184001","file1":"1350183992","file0":"1350183988","file4":"1350184020","file5":"1350184025","file3":"1350184015"},"map_files_photo_id_array":[{"photo_id":"1350184025","filename":"file5"},{"photo_id":"1350184001","filename":"file2"},{"photo_id":"1350184020","filename":"file4"},{"photo_id":"1350183992","filename":"file1"},{"photo_id":"1350183988","filename":"file0"},{"photo_id":"1350184015","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350183992":["hashtag1","hashtag2"]},{"1350184001":["hashtag1","hashtag2"]},{"1350184025":["hashtag1","hashtag2"]},{"1350183988":["hashtag1","hashtag2"]},{"1350184015":["hashtag1","hashtag2"]},{"1350184020":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350183992, 1350184001, 1350184025, 1350183988, 1350184015, 1350184020)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.817819595336914 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:46:03.177042
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/13/17/image_06042025_13_17_02_2382.jpg', 2), ('/home/pi/Desktop/images/06042025/13/12/image_06042025_13_12_01_8614.jpg', 2), ('/home/pi/Desktop/images/06042025/13/11/image_06042025_13_11_01_9433.jpg', 2), ('/home/pi/Desktop/images/06042025/13/10/image_06042025_13_10_01_6945.jpg', 2), ('/home/pi/Desktop/images/06042025/13/07/image_06042025_13_07_01_2445.jpg', 2), ('/home/pi/Desktop/images/06042025/13/04/image_06042025_13_04_01_2872.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/13/17/image_06042025_13_17_02_2382.jpg', '/home/pi/Desktop/images/06042025/13/12/image_06042025_13_12_01_8614.jpg', '/home/pi/Desktop/images/06042025/13/11/image_06042025_13_11_01_9433.jpg', '/home/pi/Desktop/images/06042025/13/10/image_06042025_13_10_01_6945.jpg', '/home/pi/Desktop/images/06042025/13/07/image_06042025_13_07_01_2445.jpg', '/home/pi/Desktop/images/06042025/13/04/image_06042025_13_04_01_2872.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/13/17/image_06042025_13_17_02_2382.jpg
/home/pi/Desktop/images/06042025/13/12/image_06042025_13_12_01_8614.jpg
/home/pi/Desktop/images/06042025/13/11/image_06042025_13_11_01_9433.jpg
/home/pi/Desktop/images/06042025/13/10/image_06042025_13_10_01_6945.jpg
/home/pi/Desktop/images/06042025/13/07/image_06042025_13_07_01_2445.jpg
/home/pi/Desktop/images/06042025/13/04/image_06042025_13_04_01_2872.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184145","1350184133","1350184081","1350184150","1350184086","1350184137"],"photo_ids_order":["1350184081","1350184086","1350184133","1350184137","1350184145","1350184150"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d1f2b4df36091169c43f8126783856f0.jpg","text":"TemporaryFile(/tmp/multipartBody4698172756026674378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965227359,"filename":"image_06042025_13_07_01_2445.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/17aae2faa362029fc1f6a016dcdde069.jpg","text":"TemporaryFile(/tmp/multipartBody6343752097920359811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965227359,"filename":"image_06042025_13_11_01_9433.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a9de3509f298e47fed789a7eb0d8c94c.jpg","text":"TemporaryFile(/tmp/multipartBody5268824346583088178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965227359,"filename":"image_06042025_13_17_02_2382.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ac46b200ad0b296a2ad54ba051d5f3ed.jpg","text":"TemporaryFile(/tmp/multipartBody2500102017178140821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965227359,"filename":"image_06042025_13_04_01_2872.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a3982da4b386b7e4e3684e8eb4240759.jpg","text":"TemporaryFile(/tmp/multipartBody5167617506136610907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965227359,"filename":"image_06042025_13_12_01_8614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9f37d130ae20cce6f48e62d929ac47d9.jpg","text":"TemporaryFile(/tmp/multipartBody3463259071407922791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965227359,"filename":"image_06042025_13_10_01_6945.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184133","file1":"1350184086","file0":"1350184081","file4":"1350184145","file5":"1350184150","file3":"1350184137"},"map_files_photo_id_array":[{"photo_id":"1350184150","filename":"file5"},{"photo_id":"1350184133","filename":"file2"},{"photo_id":"1350184145","filename":"file4"},{"photo_id":"1350184086","filename":"file1"},{"photo_id":"1350184081","filename":"file0"},{"photo_id":"1350184137","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350184145":["hashtag1","hashtag2"]},{"1350184133":["hashtag1","hashtag2"]},{"1350184081":["hashtag1","hashtag2"]},{"1350184150":["hashtag1","hashtag2"]},{"1350184086":["hashtag1","hashtag2"]},{"1350184137":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350184145, 1350184133, 1350184081, 1350184150, 1350184086, 1350184137)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.748292207717896 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:48:02.850117
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/47/image_06042025_20_47_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/20/42/image_06042025_20_42_01_9665.jpg', 2), ('/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', 2), ('/home/pi/Desktop/images/06042025/13/00/image_06042025_13_00_01_7074.jpg', 2), ('/home/pi/Desktop/images/06042025/12/59/image_06042025_12_59_01_7073.jpg', 2), ('/home/pi/Desktop/images/06042025/12/58/image_06042025_12_58_01_6080.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/47/image_06042025_20_47_01_7862.jpg', '/home/pi/Desktop/images/06042025/20/42/image_06042025_20_42_01_9665.jpg', '/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg', '/home/pi/Desktop/images/06042025/13/00/image_06042025_13_00_01_7074.jpg', '/home/pi/Desktop/images/06042025/12/59/image_06042025_12_59_01_7073.jpg', '/home/pi/Desktop/images/06042025/12/58/image_06042025_12_58_01_6080.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/47/image_06042025_20_47_01_7862.jpg
/home/pi/Desktop/images/06042025/20/42/image_06042025_20_42_01_9665.jpg
/home/pi/Desktop/images/06042025/13/01/image_06042025_13_01_02_0109.jpg
/home/pi/Desktop/images/06042025/13/00/image_06042025_13_00_01_7074.jpg
/home/pi/Desktop/images/06042025/12/59/image_06042025_12_59_01_7073.jpg
/home/pi/Desktop/images/06042025/12/58/image_06042025_12_58_01_6080.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184214","1350184192","1350184195","1350184207","1350184221","1350184218"],"photo_ids_order":["1350184192","1350184195","1350184207","1350184214","1350184218","1350184221"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/71d8ce227d3f5e7912c31eac6c6bc0f6.jpg","text":"TemporaryFile(/tmp/multipartBody7118643325388470824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965346600,"filename":"image_06042025_13_00_01_7074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ce7cc268614ee6cfc31db9d737dfb2f8.jpg","text":"TemporaryFile(/tmp/multipartBody2183920776011522155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965346600,"filename":"image_06042025_20_47_01_7862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d5ee3eb7b54c276197526cc4d543532a.jpg","text":"TemporaryFile(/tmp/multipartBody5592507687891447585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965346600,"filename":"image_06042025_20_42_01_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/34b0d79227902da4f42bb8f3ddc0467b.jpg","text":"TemporaryFile(/tmp/multipartBody1384152058368805798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965346600,"filename":"image_06042025_13_01_02_0109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a180b369fe992fde0c9c7557b3121ae9.jpg","text":"TemporaryFile(/tmp/multipartBody6660613193980826094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965346600,"filename":"image_06042025_12_58_01_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e7d34a0ded4e5dace821b9c6a7436cce.jpg","text":"TemporaryFile(/tmp/multipartBody1676320471811457485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965346600,"filename":"image_06042025_12_59_01_7073.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184207","file1":"1350184195","file0":"1350184192","file4":"1350184218","file5":"1350184221","file3":"1350184214"},"map_files_photo_id_array":[{"photo_id":"1350184221","filename":"file5"},{"photo_id":"1350184207","filename":"file2"},{"photo_id":"1350184218","filename":"file4"},{"photo_id":"1350184195","filename":"file1"},{"photo_id":"1350184192","filename":"file0"},{"photo_id":"1350184214","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350184214":["hashtag1","hashtag2"]},{"1350184192":["hashtag1","hashtag2"]},{"1350184195":["hashtag1","hashtag2"]},{"1350184207":["hashtag1","hashtag2"]},{"1350184221":["hashtag1","hashtag2"]},{"1350184218":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350184214, 1350184192, 1350184195, 1350184207, 1350184221, 1350184218)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.36625838279724 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:50:03.191409
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/48/image_06042025_20_48_01_3128.jpg', 2), ('/home/pi/Desktop/images/06042025/12/57/image_06042025_12_57_01_9576.jpg', 2), ('/home/pi/Desktop/images/06042025/12/56/image_06042025_12_56_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/12/55/image_06042025_12_55_01_9425.jpg', 2), ('/home/pi/Desktop/images/06042025/12/54/image_06042025_12_54_01_6963.jpg', 2), ('/home/pi/Desktop/images/06042025/12/53/image_06042025_12_53_01_7621.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/48/image_06042025_20_48_01_3128.jpg', '/home/pi/Desktop/images/06042025/12/57/image_06042025_12_57_01_9576.jpg', '/home/pi/Desktop/images/06042025/12/56/image_06042025_12_56_01_7862.jpg', '/home/pi/Desktop/images/06042025/12/55/image_06042025_12_55_01_9425.jpg', '/home/pi/Desktop/images/06042025/12/54/image_06042025_12_54_01_6963.jpg', '/home/pi/Desktop/images/06042025/12/53/image_06042025_12_53_01_7621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/48/image_06042025_20_48_01_3128.jpg
/home/pi/Desktop/images/06042025/12/57/image_06042025_12_57_01_9576.jpg
/home/pi/Desktop/images/06042025/12/56/image_06042025_12_56_01_7862.jpg
/home/pi/Desktop/images/06042025/12/55/image_06042025_12_55_01_9425.jpg
/home/pi/Desktop/images/06042025/12/54/image_06042025_12_54_01_6963.jpg
/home/pi/Desktop/images/06042025/12/53/image_06042025_12_53_01_7621.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184321","1350184324","1350184303","1350184314","1350184317","1350184298"],"photo_ids_order":["1350184298","1350184303","1350184314","1350184317","1350184321","1350184324"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bd075dff868bb5d1534254f2728d4682.jpg","text":"TemporaryFile(/tmp/multipartBody1934158896450249284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965467163,"filename":"image_06042025_12_54_01_6963.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/371e2647298c043c9e080360f5c9e8b1.jpg","text":"TemporaryFile(/tmp/multipartBody2403219246447631039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965467163,"filename":"image_06042025_12_53_01_7621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a34969c5deace96bf14620c40298385c.jpg","text":"TemporaryFile(/tmp/multipartBody385926660159589345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965467163,"filename":"image_06042025_12_57_01_9576.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/47383794fb15c42eeb17e915e79e4697.jpg","text":"TemporaryFile(/tmp/multipartBody7489973712377775835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965467163,"filename":"image_06042025_12_56_01_7862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fd8efcab0e45264d6248d2ace5ed6ae6.jpg","text":"TemporaryFile(/tmp/multipartBody5748774346555563791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965467163,"filename":"image_06042025_12_55_01_9425.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b92ef6d4010e50ca00553d56f340c449.jpg","text":"TemporaryFile(/tmp/multipartBody6286582976091922635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965467163,"filename":"image_06042025_20_48_01_3128.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184314","file1":"1350184303","file0":"1350184298","file4":"1350184321","file5":"1350184324","file3":"1350184317"},"map_files_photo_id_array":[{"photo_id":"1350184324","filename":"file5"},{"photo_id":"1350184314","filename":"file2"},{"photo_id":"1350184321","filename":"file4"},{"photo_id":"1350184303","filename":"file1"},{"photo_id":"1350184298","filename":"file0"},{"photo_id":"1350184317","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350184321":["hashtag1","hashtag2"]},{"1350184324":["hashtag1","hashtag2"]},{"1350184303":["hashtag1","hashtag2"]},{"1350184314":["hashtag1","hashtag2"]},{"1350184317":["hashtag1","hashtag2"]},{"1350184298":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350184321, 1350184324, 1350184303, 1350184314, 1350184317, 1350184298)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.94361853599548 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:52:03.500574
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/12/51/image_06042025_12_51_01_6195.jpg', 2), ('/home/pi/Desktop/images/06042025/12/50/image_06042025_12_50_01_4629.jpg', 2), ('/home/pi/Desktop/images/06042025/12/48/image_06042025_12_48_01_7603.jpg', 2), ('/home/pi/Desktop/images/06042025/12/47/image_06042025_12_47_01_8596.jpg', 2), ('/home/pi/Desktop/images/06042025/12/46/image_06042025_12_46_01_6595.jpg', 2), ('/home/pi/Desktop/images/06042025/12/42/image_06042025_12_42_01_8247.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/12/51/image_06042025_12_51_01_6195.jpg', '/home/pi/Desktop/images/06042025/12/50/image_06042025_12_50_01_4629.jpg', '/home/pi/Desktop/images/06042025/12/48/image_06042025_12_48_01_7603.jpg', '/home/pi/Desktop/images/06042025/12/47/image_06042025_12_47_01_8596.jpg', '/home/pi/Desktop/images/06042025/12/46/image_06042025_12_46_01_6595.jpg', '/home/pi/Desktop/images/06042025/12/42/image_06042025_12_42_01_8247.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/12/51/image_06042025_12_51_01_6195.jpg
/home/pi/Desktop/images/06042025/12/50/image_06042025_12_50_01_4629.jpg
/home/pi/Desktop/images/06042025/12/48/image_06042025_12_48_01_7603.jpg
/home/pi/Desktop/images/06042025/12/47/image_06042025_12_47_01_8596.jpg
/home/pi/Desktop/images/06042025/12/46/image_06042025_12_46_01_6595.jpg
/home/pi/Desktop/images/06042025/12/42/image_06042025_12_42_01_8247.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184414","1350184380","1350184407","1350184422","1350184391","1350184385"],"photo_ids_order":["1350184380","1350184385","1350184391","1350184407","1350184414","1350184422"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7fb7a70f77e073c9113eb9f73ebed7f2.jpg","text":"TemporaryFile(/tmp/multipartBody2939172174359968367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965587699,"filename":"image_06042025_12_46_01_6595.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/91ea102169d21994863bebfa864b35ed.jpg","text":"TemporaryFile(/tmp/multipartBody4995228755633842948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965587699,"filename":"image_06042025_12_51_01_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec654eaf330a5bfed2ea042c5fd68cb0.jpg","text":"TemporaryFile(/tmp/multipartBody5674498839724831545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965587699,"filename":"image_06042025_12_47_01_8596.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2464c178754727f7ab01eb7309832530.jpg","text":"TemporaryFile(/tmp/multipartBody7789725765977971601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965587699,"filename":"image_06042025_12_42_01_8247.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ebba31d7de8bb56617744b613903b2b6.jpg","text":"TemporaryFile(/tmp/multipartBody4900316934818137732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965587699,"filename":"image_06042025_12_48_01_7603.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ea849204a97874c19ec2a973ddaa075f.jpg","text":"TemporaryFile(/tmp/multipartBody5876093323583963023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965587699,"filename":"image_06042025_12_50_01_4629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184391","file1":"1350184385","file0":"1350184380","file4":"1350184414","file5":"1350184422","file3":"1350184407"},"map_files_photo_id_array":[{"photo_id":"1350184422","filename":"file5"},{"photo_id":"1350184391","filename":"file2"},{"photo_id":"1350184414","filename":"file4"},{"photo_id":"1350184385","filename":"file1"},{"photo_id":"1350184380","filename":"file0"},{"photo_id":"1350184407","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350184414":["hashtag1","hashtag2"]},{"1350184380":["hashtag1","hashtag2"]},{"1350184407":["hashtag1","hashtag2"]},{"1350184422":["hashtag1","hashtag2"]},{"1350184391":["hashtag1","hashtag2"]},{"1350184385":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350184414, 1350184380, 1350184407, 1350184422, 1350184391, 1350184385)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.07204532623291 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:54:02.839175
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/49/image_06042025_20_49_01_3215.jpg', 2), ('/home/pi/Desktop/images/06042025/12/41/image_06042025_12_41_01_8956.jpg', 2), ('/home/pi/Desktop/images/06042025/12/40/image_06042025_12_40_01_7697.jpg', 2), ('/home/pi/Desktop/images/06042025/12/38/image_06042025_12_38_01_5939.jpg', 2), ('/home/pi/Desktop/images/06042025/12/36/image_06042025_12_36_01_2927.jpg', 2), ('/home/pi/Desktop/images/06042025/12/35/image_06042025_12_35_01_3127.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/49/image_06042025_20_49_01_3215.jpg', '/home/pi/Desktop/images/06042025/12/41/image_06042025_12_41_01_8956.jpg', '/home/pi/Desktop/images/06042025/12/40/image_06042025_12_40_01_7697.jpg', '/home/pi/Desktop/images/06042025/12/38/image_06042025_12_38_01_5939.jpg', '/home/pi/Desktop/images/06042025/12/36/image_06042025_12_36_01_2927.jpg', '/home/pi/Desktop/images/06042025/12/35/image_06042025_12_35_01_3127.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/49/image_06042025_20_49_01_3215.jpg
/home/pi/Desktop/images/06042025/12/41/image_06042025_12_41_01_8956.jpg
/home/pi/Desktop/images/06042025/12/40/image_06042025_12_40_01_7697.jpg
/home/pi/Desktop/images/06042025/12/38/image_06042025_12_38_01_5939.jpg
/home/pi/Desktop/images/06042025/12/36/image_06042025_12_36_01_2927.jpg
/home/pi/Desktop/images/06042025/12/35/image_06042025_12_35_01_3127.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184562","1350184555","1350184540","1350184512","1350184509","1350184547"],"photo_ids_order":["1350184509","1350184512","1350184540","1350184547","1350184555","1350184562"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c44cc3164a8e171cce4185affcedc697.jpg","text":"TemporaryFile(/tmp/multipartBody8870967469184434975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965706799,"filename":"image_06042025_12_35_01_3127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/956d3ce12513407319217eac3c89cc7d.jpg","text":"TemporaryFile(/tmp/multipartBody3057134704472392293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965706799,"filename":"image_06042025_12_36_01_2927.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/408b8e45ac4a138e81b2505fbab79b56.jpg","text":"TemporaryFile(/tmp/multipartBody82882178831723012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965706799,"filename":"image_06042025_12_40_01_7697.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e4aedfc430edb6c48aca0da52fde97a3.jpg","text":"TemporaryFile(/tmp/multipartBody2987381154121479821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965706799,"filename":"image_06042025_12_41_01_8956.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0c8226d33feaa05201a4dc20aa074f8d.jpg","text":"TemporaryFile(/tmp/multipartBody6244024135179566682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965706799,"filename":"image_06042025_20_49_01_3215.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1dac33556b6549f8e309c8c5465afab2.jpg","text":"TemporaryFile(/tmp/multipartBody3465394424240926556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965706799,"filename":"image_06042025_12_38_01_5939.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184540","file1":"1350184512","file0":"1350184509","file4":"1350184555","file5":"1350184562","file3":"1350184547"},"map_files_photo_id_array":[{"photo_id":"1350184562","filename":"file5"},{"photo_id":"1350184540","filename":"file2"},{"photo_id":"1350184555","filename":"file4"},{"photo_id":"1350184512","filename":"file1"},{"photo_id":"1350184509","filename":"file0"},{"photo_id":"1350184547","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350184562":["hashtag1","hashtag2"]},{"1350184555":["hashtag1","hashtag2"]},{"1350184540":["hashtag1","hashtag2"]},{"1350184512":["hashtag1","hashtag2"]},{"1350184509":["hashtag1","hashtag2"]},{"1350184547":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350184562, 1350184555, 1350184540, 1350184512, 1350184509, 1350184547)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.93712425231934 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:56:03.136291
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/54/image_06042025_20_54_01_6331.jpg', 2), ('/home/pi/Desktop/images/06042025/12/33/image_06042025_12_33_01_5099.jpg', 2), ('/home/pi/Desktop/images/06042025/12/32/image_06042025_12_32_01_3665.jpg', 2), ('/home/pi/Desktop/images/06042025/12/31/image_06042025_12_31_01_4105.jpg', 2), ('/home/pi/Desktop/images/06042025/12/30/image_06042025_12_30_01_9688.jpg', 2), ('/home/pi/Desktop/images/06042025/12/29/image_06042025_12_29_01_9563.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/54/image_06042025_20_54_01_6331.jpg', '/home/pi/Desktop/images/06042025/12/33/image_06042025_12_33_01_5099.jpg', '/home/pi/Desktop/images/06042025/12/32/image_06042025_12_32_01_3665.jpg', '/home/pi/Desktop/images/06042025/12/31/image_06042025_12_31_01_4105.jpg', '/home/pi/Desktop/images/06042025/12/30/image_06042025_12_30_01_9688.jpg', '/home/pi/Desktop/images/06042025/12/29/image_06042025_12_29_01_9563.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/54/image_06042025_20_54_01_6331.jpg
/home/pi/Desktop/images/06042025/12/33/image_06042025_12_33_01_5099.jpg
/home/pi/Desktop/images/06042025/12/32/image_06042025_12_32_01_3665.jpg
/home/pi/Desktop/images/06042025/12/31/image_06042025_12_31_01_4105.jpg
/home/pi/Desktop/images/06042025/12/30/image_06042025_12_30_01_9688.jpg
/home/pi/Desktop/images/06042025/12/29/image_06042025_12_29_01_9563.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184706","1350184723","1350184711","1350184717","1350184702","1350184697"],"photo_ids_order":["1350184697","1350184702","1350184706","1350184711","1350184717","1350184723"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6165fed78c93ee6fb71a4dd4fd8ef3f6.jpg","text":"TemporaryFile(/tmp/multipartBody1284929780158035622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965827453,"filename":"image_06042025_12_32_01_3665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e6d6c03fe6f0e4409b114839a4331580.jpg","text":"TemporaryFile(/tmp/multipartBody3046481946183048484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965827453,"filename":"image_06042025_12_29_01_9563.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/16fa5d1f55cf3bc745d79a04ce3fa410.jpg","text":"TemporaryFile(/tmp/multipartBody8947212336106591468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965827453,"filename":"image_06042025_12_31_01_4105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3b906ee2b180cc19371d9a6ce9cf706b.jpg","text":"TemporaryFile(/tmp/multipartBody8620826418614389651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965827453,"filename":"image_06042025_12_30_01_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/eceabd4ac5759d486d31b9d58ed9dee3.jpg","text":"TemporaryFile(/tmp/multipartBody390340612596077829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965827453,"filename":"image_06042025_12_33_01_5099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3b490ef90d10fc43f293bfb73745c378.jpg","text":"TemporaryFile(/tmp/multipartBody5375926267518098307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965827453,"filename":"image_06042025_20_54_01_6331.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184706","file1":"1350184702","file0":"1350184697","file4":"1350184717","file5":"1350184723","file3":"1350184711"},"map_files_photo_id_array":[{"photo_id":"1350184723","filename":"file5"},{"photo_id":"1350184706","filename":"file2"},{"photo_id":"1350184717","filename":"file4"},{"photo_id":"1350184702","filename":"file1"},{"photo_id":"1350184697","filename":"file0"},{"photo_id":"1350184711","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350184706":["hashtag1","hashtag2"]},{"1350184723":["hashtag1","hashtag2"]},{"1350184711":["hashtag1","hashtag2"]},{"1350184717":["hashtag1","hashtag2"]},{"1350184702":["hashtag1","hashtag2"]},{"1350184697":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350184706, 1350184723, 1350184711, 1350184717, 1350184702, 1350184697)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.57450556755066 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 20:59:03.703275
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/58/image_06042025_20_58_01_5924.jpg', 2), ('/home/pi/Desktop/images/06042025/20/57/image_06042025_20_57_01_6983.jpg', 2), ('/home/pi/Desktop/images/06042025/20/56/image_06042025_20_56_01_9348.jpg', 2), ('/home/pi/Desktop/images/06042025/12/28/image_06042025_12_28_02_1484.jpg', 2), ('/home/pi/Desktop/images/06042025/12/27/image_06042025_12_27_01_5763.jpg', 2), ('/home/pi/Desktop/images/06042025/12/24/image_06042025_12_24_01_7239.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/58/image_06042025_20_58_01_5924.jpg', '/home/pi/Desktop/images/06042025/20/57/image_06042025_20_57_01_6983.jpg', '/home/pi/Desktop/images/06042025/20/56/image_06042025_20_56_01_9348.jpg', '/home/pi/Desktop/images/06042025/12/28/image_06042025_12_28_02_1484.jpg', '/home/pi/Desktop/images/06042025/12/27/image_06042025_12_27_01_5763.jpg', '/home/pi/Desktop/images/06042025/12/24/image_06042025_12_24_01_7239.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/58/image_06042025_20_58_01_5924.jpg
/home/pi/Desktop/images/06042025/20/57/image_06042025_20_57_01_6983.jpg
/home/pi/Desktop/images/06042025/20/56/image_06042025_20_56_01_9348.jpg
/home/pi/Desktop/images/06042025/12/28/image_06042025_12_28_02_1484.jpg
/home/pi/Desktop/images/06042025/12/27/image_06042025_12_27_01_5763.jpg
/home/pi/Desktop/images/06042025/12/24/image_06042025_12_24_01_7239.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184835","1350184861","1350184843","1350184854","1350184862","1350184865"],"photo_ids_order":["1350184835","1350184843","1350184854","1350184861","1350184862","1350184865"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c64b635d949b8f60613d7da1516a17a7.jpg","text":"TemporaryFile(/tmp/multipartBody2492983382730523602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966007277,"filename":"image_06042025_20_58_01_5924.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ac55debcb99a022f2c9b5f7e9319b8c4.jpg","text":"TemporaryFile(/tmp/multipartBody5352701542022512173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966007277,"filename":"image_06042025_12_28_02_1484.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cbb0556f54a6c4be88605f504d5c1c8b.jpg","text":"TemporaryFile(/tmp/multipartBody8970360233041008220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966007277,"filename":"image_06042025_20_57_01_6983.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0608d4207283dc9e19f72decfab32e87.jpg","text":"TemporaryFile(/tmp/multipartBody1295918446054389800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966007277,"filename":"image_06042025_20_56_01_9348.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7fa496f07606898ef330becf69c897a0.jpg","text":"TemporaryFile(/tmp/multipartBody1289688336203862999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966007277,"filename":"image_06042025_12_27_01_5763.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e18a0573003d31a572a0dae85dc3a957.jpg","text":"TemporaryFile(/tmp/multipartBody5240649179232714341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966007277,"filename":"image_06042025_12_24_01_7239.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184854","file1":"1350184843","file0":"1350184835","file4":"1350184862","file5":"1350184865","file3":"1350184861"},"map_files_photo_id_array":[{"photo_id":"1350184865","filename":"file5"},{"photo_id":"1350184854","filename":"file2"},{"photo_id":"1350184862","filename":"file4"},{"photo_id":"1350184843","filename":"file1"},{"photo_id":"1350184835","filename":"file0"},{"photo_id":"1350184861","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350184835":["hashtag1","hashtag2"]},{"1350184861":["hashtag1","hashtag2"]},{"1350184843":["hashtag1","hashtag2"]},{"1350184854":["hashtag1","hashtag2"]},{"1350184862":["hashtag1","hashtag2"]},{"1350184865":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350184835, 1350184861, 1350184843, 1350184854, 1350184862, 1350184865)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.32414031028748 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:01:03.981740
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/20/59/image_06042025_20_59_01_6428.jpg', 2), ('/home/pi/Desktop/images/06042025/12/16/image_06042025_12_16_02_0439.jpg', 2), ('/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg', 2), ('/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg', 2), ('/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg', 2), ('/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/20/59/image_06042025_20_59_01_6428.jpg', '/home/pi/Desktop/images/06042025/12/16/image_06042025_12_16_02_0439.jpg', '/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg', '/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg', '/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg', '/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/20/59/image_06042025_20_59_01_6428.jpg
/home/pi/Desktop/images/06042025/12/16/image_06042025_12_16_02_0439.jpg
/home/pi/Desktop/images/06042025/12/15/image_06042025_12_15_01_9784.jpg
/home/pi/Desktop/images/06042025/12/14/image_06042025_12_14_01_7881.jpg
/home/pi/Desktop/images/06042025/12/13/image_06042025_12_13_01_8713.jpg
/home/pi/Desktop/images/06042025/12/11/image_06042025_12_11_01_2426.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185015","1350185011","1350184936","1350184951","1350184959","1350185007"],"photo_ids_order":["1350184936","1350184951","1350184959","1350185007","1350185011","1350185015"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9cf53c181b20a88b6e1754fcbfadf762.jpg","text":"TemporaryFile(/tmp/multipartBody542063172812238379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966127995,"filename":"image_06042025_12_11_01_2426.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0d9cfa8a2b32b377105c8d0083991c32.jpg","text":"TemporaryFile(/tmp/multipartBody4961926870702207472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966127995,"filename":"image_06042025_12_13_01_8713.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/36f2986e8f8ad5e7c66fbf7048913cc8.jpg","text":"TemporaryFile(/tmp/multipartBody7226060518157139950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966127995,"filename":"image_06042025_20_59_01_6428.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7ca1fc01d1d22abdcfb034b092ff541a.jpg","text":"TemporaryFile(/tmp/multipartBody960318233990808224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966127995,"filename":"image_06042025_12_16_02_0439.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc3a1b23d2acc9f3e0bd8f9f3a9ec1e5.jpg","text":"TemporaryFile(/tmp/multipartBody3088366140076268377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966127995,"filename":"image_06042025_12_15_01_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/6b73ce6cdd5bbc7c67bfcf6628505c74.jpg","text":"TemporaryFile(/tmp/multipartBody1611598001201902314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966127995,"filename":"image_06042025_12_14_01_7881.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184959","file1":"1350184951","file0":"1350184936","file4":"1350185011","file5":"1350185015","file3":"1350185007"},"map_files_photo_id_array":[{"photo_id":"1350185015","filename":"file5"},{"photo_id":"1350184959","filename":"file2"},{"photo_id":"1350185011","filename":"file4"},{"photo_id":"1350184951","filename":"file1"},{"photo_id":"1350184936","filename":"file0"},{"photo_id":"1350185007","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350185015":["hashtag1","hashtag2"]},{"1350185011":["hashtag1","hashtag2"]},{"1350184936":["hashtag1","hashtag2"]},{"1350184951":["hashtag1","hashtag2"]},{"1350184959":["hashtag1","hashtag2"]},{"1350185007":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350185015, 1350185011, 1350184936, 1350184951, 1350184959, 1350185007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.33328652381897 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:03:03.278596
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/03/image_06042025_21_03_02_0247.jpg', 2), ('/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg', 2), ('/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', 2), ('/home/pi/Desktop/images/06042025/12/02/image_06042025_12_02_01_8065.jpg', 2), ('/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg', 2), ('/home/pi/Desktop/images/06042025/12/00/image_06042025_12_00_01_5148.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/03/image_06042025_21_03_02_0247.jpg', '/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg', '/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg', '/home/pi/Desktop/images/06042025/12/02/image_06042025_12_02_01_8065.jpg', '/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg', '/home/pi/Desktop/images/06042025/12/00/image_06042025_12_00_01_5148.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/03/image_06042025_21_03_02_0247.jpg
/home/pi/Desktop/images/06042025/12/05/image_06042025_12_05_02_0970.jpg
/home/pi/Desktop/images/06042025/12/03/image_06042025_12_03_01_9380.jpg
/home/pi/Desktop/images/06042025/12/02/image_06042025_12_02_01_8065.jpg
/home/pi/Desktop/images/06042025/12/01/image_06042025_12_01_02_0015.jpg
/home/pi/Desktop/images/06042025/12/00/image_06042025_12_00_01_5148.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185129","1350185151","1350185100","1350185118","1350185093","1350185123"],"photo_ids_order":["1350185093","1350185100","1350185118","1350185123","1350185129","1350185151"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a086907bcb2ee8e7cfff223f8fa6e4c1.jpg","text":"TemporaryFile(/tmp/multipartBody274319396611645500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966247450,"filename":"image_06042025_12_01_02_0015.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6b042c7ec28c0d0b5193d23ff0306acf.jpg","text":"TemporaryFile(/tmp/multipartBody3980952029416919538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966247450,"filename":"image_06042025_12_00_01_5148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/904ed0e93dfa815f1613cee84807927a.jpg","text":"TemporaryFile(/tmp/multipartBody1965993287021269043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966247450,"filename":"image_06042025_12_05_02_0970.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fe66749f08d14b9f8e2de3b881c04767.jpg","text":"TemporaryFile(/tmp/multipartBody1600061521767767037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966247450,"filename":"image_06042025_12_03_01_9380.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2bd5960b16aa899500fa88fb6145967f.jpg","text":"TemporaryFile(/tmp/multipartBody5733019528144940551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966247450,"filename":"image_06042025_21_03_02_0247.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3ea52c57d38400c94d364747a98e8eea.jpg","text":"TemporaryFile(/tmp/multipartBody3304763263058337735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966247450,"filename":"image_06042025_12_02_01_8065.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185118","file1":"1350185100","file0":"1350185093","file4":"1350185129","file5":"1350185151","file3":"1350185123"},"map_files_photo_id_array":[{"photo_id":"1350185151","filename":"file5"},{"photo_id":"1350185118","filename":"file2"},{"photo_id":"1350185129","filename":"file4"},{"photo_id":"1350185100","filename":"file1"},{"photo_id":"1350185093","filename":"file0"},{"photo_id":"1350185123","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350185129":["hashtag1","hashtag2"]},{"1350185151":["hashtag1","hashtag2"]},{"1350185100":["hashtag1","hashtag2"]},{"1350185118":["hashtag1","hashtag2"]},{"1350185093":["hashtag1","hashtag2"]},{"1350185123":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350185129, 1350185151, 1350185100, 1350185118, 1350185093, 1350185123)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.46841835975647 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:05:03.437979
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/11/52/image_06042025_11_52_01_8185.jpg', 2), ('/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg', 2), ('/home/pi/Desktop/images/06042025/11/50/image_06042025_11_50_01_3502.jpg', 2), ('/home/pi/Desktop/images/06042025/11/49/image_06042025_11_49_01_5380.jpg', 2), ('/home/pi/Desktop/images/06042025/11/48/image_06042025_11_48_01_9188.jpg', 2), ('/home/pi/Desktop/images/06042025/11/42/image_06042025_11_42_01_8278.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/11/52/image_06042025_11_52_01_8185.jpg', '/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg', '/home/pi/Desktop/images/06042025/11/50/image_06042025_11_50_01_3502.jpg', '/home/pi/Desktop/images/06042025/11/49/image_06042025_11_49_01_5380.jpg', '/home/pi/Desktop/images/06042025/11/48/image_06042025_11_48_01_9188.jpg', '/home/pi/Desktop/images/06042025/11/42/image_06042025_11_42_01_8278.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/11/52/image_06042025_11_52_01_8185.jpg
/home/pi/Desktop/images/06042025/11/51/image_06042025_11_51_01_6560.jpg
/home/pi/Desktop/images/06042025/11/50/image_06042025_11_50_01_3502.jpg
/home/pi/Desktop/images/06042025/11/49/image_06042025_11_49_01_5380.jpg
/home/pi/Desktop/images/06042025/11/48/image_06042025_11_48_01_9188.jpg
/home/pi/Desktop/images/06042025/11/42/image_06042025_11_42_01_8278.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185290","1350185241","1350185301","1350185279","1350185267","1350185246"],"photo_ids_order":["1350185241","1350185246","1350185267","1350185279","1350185290","1350185301"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/731ab85a268135c15add48669a5ba02d.jpg","text":"TemporaryFile(/tmp/multipartBody1830163937027056150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966367880,"filename":"image_06042025_11_48_01_9188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bfef4ed1f034d679840607cf349ff0de.jpg","text":"TemporaryFile(/tmp/multipartBody8273502076608006688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966367880,"filename":"image_06042025_11_52_01_8185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5f12d5a1b0f4d21f90dc9045a35df370.jpg","text":"TemporaryFile(/tmp/multipartBody6815977031166606113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966367880,"filename":"image_06042025_11_42_01_8278.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/11ab1c34eba9ef77fdc6e5d6a68ddc6f.jpg","text":"TemporaryFile(/tmp/multipartBody8702606067423845622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966367880,"filename":"image_06042025_11_49_01_5380.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f4c20fb67db0b9062eca83ddc55527cb.jpg","text":"TemporaryFile(/tmp/multipartBody7020959090232593113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966367880,"filename":"image_06042025_11_50_01_3502.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2bfb4d885547f59ce2dbfebcbcb4db06.jpg","text":"TemporaryFile(/tmp/multipartBody2596057508041455180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966367880,"filename":"image_06042025_11_51_01_6560.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185267","file1":"1350185246","file0":"1350185241","file4":"1350185290","file5":"1350185301","file3":"1350185279"},"map_files_photo_id_array":[{"photo_id":"1350185301","filename":"file5"},{"photo_id":"1350185267","filename":"file2"},{"photo_id":"1350185290","filename":"file4"},{"photo_id":"1350185246","filename":"file1"},{"photo_id":"1350185241","filename":"file0"},{"photo_id":"1350185279","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350185290":["hashtag1","hashtag2"]},{"1350185241":["hashtag1","hashtag2"]},{"1350185301":["hashtag1","hashtag2"]},{"1350185279":["hashtag1","hashtag2"]},{"1350185267":["hashtag1","hashtag2"]},{"1350185246":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350185290, 1350185241, 1350185301, 1350185279, 1350185267, 1350185246)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.64968705177307 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:07:03.660247
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg', 2), ('/home/pi/Desktop/images/06042025/11/39/image_06042025_11_39_01_6501.jpg', 2), ('/home/pi/Desktop/images/06042025/11/38/image_06042025_11_38_01_5739.jpg', 2), ('/home/pi/Desktop/images/06042025/11/32/image_06042025_11_32_01_9309.jpg', 2), ('/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', 2), ('/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg', '/home/pi/Desktop/images/06042025/11/39/image_06042025_11_39_01_6501.jpg', '/home/pi/Desktop/images/06042025/11/38/image_06042025_11_38_01_5739.jpg', '/home/pi/Desktop/images/06042025/11/32/image_06042025_11_32_01_9309.jpg', '/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg', '/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/11/40/image_06042025_11_40_01_6666.jpg
/home/pi/Desktop/images/06042025/11/39/image_06042025_11_39_01_6501.jpg
/home/pi/Desktop/images/06042025/11/38/image_06042025_11_38_01_5739.jpg
/home/pi/Desktop/images/06042025/11/32/image_06042025_11_32_01_9309.jpg
/home/pi/Desktop/images/06042025/11/30/image_06042025_11_30_01_5332.jpg
/home/pi/Desktop/images/06042025/11/29/image_06042025_11_29_01_4961.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185426","1350185416","1350185361","1350185349","1350185379","1350185423"],"photo_ids_order":["1350185349","1350185361","1350185379","1350185416","1350185423","1350185426"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dd315f0a630acb7359080b0c83f95d00.jpg","text":"TemporaryFile(/tmp/multipartBody843235133554816968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966487951,"filename":"image_06042025_11_29_01_4961.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ef64d0a62aa13007f3fe814bc2fcee5b.jpg","text":"TemporaryFile(/tmp/multipartBody5141438633515586296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966487951,"filename":"image_06042025_11_32_01_9309.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc76a917d54937ddeebedb627e6c72f2.jpg","text":"TemporaryFile(/tmp/multipartBody4658276498711138148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966487951,"filename":"image_06042025_11_39_01_6501.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e39fc5417a36806deb87f7c4005e853.jpg","text":"TemporaryFile(/tmp/multipartBody8473561592818266238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966487951,"filename":"image_06042025_11_40_01_6666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f9c236bf64e0da90b95933739ceb11b9.jpg","text":"TemporaryFile(/tmp/multipartBody271402682242319651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966487951,"filename":"image_06042025_11_38_01_5739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0a24bcd34eba58e7c89c999d0ac858b5.jpg","text":"TemporaryFile(/tmp/multipartBody292446747360534114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966487951,"filename":"image_06042025_11_30_01_5332.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185379","file1":"1350185361","file0":"1350185349","file4":"1350185423","file5":"1350185426","file3":"1350185416"},"map_files_photo_id_array":[{"photo_id":"1350185426","filename":"file5"},{"photo_id":"1350185379","filename":"file2"},{"photo_id":"1350185423","filename":"file4"},{"photo_id":"1350185361","filename":"file1"},{"photo_id":"1350185349","filename":"file0"},{"photo_id":"1350185416","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350185426":["hashtag1","hashtag2"]},{"1350185416":["hashtag1","hashtag2"]},{"1350185361":["hashtag1","hashtag2"]},{"1350185349":["hashtag1","hashtag2"]},{"1350185379":["hashtag1","hashtag2"]},{"1350185423":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350185426, 1350185416, 1350185361, 1350185349, 1350185379, 1350185423)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 73.06389713287354 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:09:03.565056
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/00/image_06042025_21_00_01_8731.jpg', 2), ('/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg', 2), ('/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg', 2), ('/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', 2), ('/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', 2), ('/home/pi/Desktop/images/06042025/11/20/image_06042025_11_20_01_5204.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/00/image_06042025_21_00_01_8731.jpg', '/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg', '/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg', '/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg', '/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg', '/home/pi/Desktop/images/06042025/11/20/image_06042025_11_20_01_5204.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/00/image_06042025_21_00_01_8731.jpg
/home/pi/Desktop/images/06042025/11/24/image_06042025_11_24_02_1925.jpg
/home/pi/Desktop/images/06042025/11/23/image_06042025_11_23_02_1790.jpg
/home/pi/Desktop/images/06042025/11/22/image_06042025_11_22_01_9624.jpg
/home/pi/Desktop/images/06042025/11/21/image_06042025_11_21_01_7862.jpg
/home/pi/Desktop/images/06042025/11/20/image_06042025_11_20_01_5204.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185785","1350185764","1350185713","1350185691","1350185726","1350185720"],"photo_ids_order":["1350185691","1350185713","1350185720","1350185726","1350185764","1350185785"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a00eb495b9293706e5be97cfb871cc5c.jpg","text":"TemporaryFile(/tmp/multipartBody6469157606330179168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966607469,"filename":"image_06042025_11_20_01_5204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/34fade9eaeba29736d86f786c8c55db0.jpg","text":"TemporaryFile(/tmp/multipartBody3190377268660199162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966607469,"filename":"image_06042025_11_21_01_7862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d42ab99f1e9f2851f24697d01c8aeb8.jpg","text":"TemporaryFile(/tmp/multipartBody5287275962232909376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966607469,"filename":"image_06042025_11_24_02_1925.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/08c59b31c66c0be152860d2049ff004c.jpg","text":"TemporaryFile(/tmp/multipartBody3135590382801435801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966607469,"filename":"image_06042025_21_00_01_8731.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/002d1e01e9a548322c758c7161cd2aed.jpg","text":"TemporaryFile(/tmp/multipartBody2420113104445044810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966607469,"filename":"image_06042025_11_22_01_9624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f436c7c217d16f6893134b012314bebc.jpg","text":"TemporaryFile(/tmp/multipartBody4917822849862242328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966607469,"filename":"image_06042025_11_23_02_1790.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185720","file1":"1350185713","file0":"1350185691","file4":"1350185764","file5":"1350185785","file3":"1350185726"},"map_files_photo_id_array":[{"photo_id":"1350185785","filename":"file5"},{"photo_id":"1350185720","filename":"file2"},{"photo_id":"1350185764","filename":"file4"},{"photo_id":"1350185713","filename":"file1"},{"photo_id":"1350185691","filename":"file0"},{"photo_id":"1350185726","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350185785":["hashtag1","hashtag2"]},{"1350185764":["hashtag1","hashtag2"]},{"1350185713":["hashtag1","hashtag2"]},{"1350185691":["hashtag1","hashtag2"]},{"1350185726":["hashtag1","hashtag2"]},{"1350185720":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350185785, 1350185764, 1350185713, 1350185691, 1350185726, 1350185720)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.37013840675354 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:11:03.891147
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/08/image_06042025_21_08_01_8487.jpg', 2), ('/home/pi/Desktop/images/06042025/11/19/image_06042025_11_19_02_1709.jpg', 2), ('/home/pi/Desktop/images/06042025/11/18/image_06042025_11_18_01_9730.jpg', 2), ('/home/pi/Desktop/images/06042025/11/17/image_06042025_11_17_01_9068.jpg', 2), ('/home/pi/Desktop/images/06042025/11/15/image_06042025_11_15_01_3872.jpg', 2), ('/home/pi/Desktop/images/06042025/11/11/image_06042025_11_11_01_9592.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/08/image_06042025_21_08_01_8487.jpg', '/home/pi/Desktop/images/06042025/11/19/image_06042025_11_19_02_1709.jpg', '/home/pi/Desktop/images/06042025/11/18/image_06042025_11_18_01_9730.jpg', '/home/pi/Desktop/images/06042025/11/17/image_06042025_11_17_01_9068.jpg', '/home/pi/Desktop/images/06042025/11/15/image_06042025_11_15_01_3872.jpg', '/home/pi/Desktop/images/06042025/11/11/image_06042025_11_11_01_9592.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/08/image_06042025_21_08_01_8487.jpg
/home/pi/Desktop/images/06042025/11/19/image_06042025_11_19_02_1709.jpg
/home/pi/Desktop/images/06042025/11/18/image_06042025_11_18_01_9730.jpg
/home/pi/Desktop/images/06042025/11/17/image_06042025_11_17_01_9068.jpg
/home/pi/Desktop/images/06042025/11/15/image_06042025_11_15_01_3872.jpg
/home/pi/Desktop/images/06042025/11/11/image_06042025_11_11_01_9592.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186183","1350186207","1350186201","1350186164","1350186188","1350186169"],"photo_ids_order":["1350186164","1350186169","1350186183","1350186188","1350186201","1350186207"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/64f061d150e7ab50fa8ceaf392174ed5.jpg","text":"TemporaryFile(/tmp/multipartBody2975002592888201202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966727939,"filename":"image_06042025_11_18_01_9730.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a27c225ea78df8b67a13c099332ee052.jpg","text":"TemporaryFile(/tmp/multipartBody3604005203023837661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966727939,"filename":"image_06042025_11_11_01_9592.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8bcb72c798a4cddbb615976853c9fe0a.jpg","text":"TemporaryFile(/tmp/multipartBody8438556554480203336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966727939,"filename":"image_06042025_11_15_01_3872.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25241fbc75348c59423ae0543b4b54c8.jpg","text":"TemporaryFile(/tmp/multipartBody862643638031916606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966727939,"filename":"image_06042025_21_08_01_8487.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5a66d772e63442c261b15454aaad29b3.jpg","text":"TemporaryFile(/tmp/multipartBody1591629745979774053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966727939,"filename":"image_06042025_11_17_01_9068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e72d69c09221defe6efaff89bb92eded.jpg","text":"TemporaryFile(/tmp/multipartBody5374146357574584236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966727939,"filename":"image_06042025_11_19_02_1709.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186183","file1":"1350186169","file0":"1350186164","file4":"1350186201","file5":"1350186207","file3":"1350186188"},"map_files_photo_id_array":[{"photo_id":"1350186207","filename":"file5"},{"photo_id":"1350186183","filename":"file2"},{"photo_id":"1350186201","filename":"file4"},{"photo_id":"1350186169","filename":"file1"},{"photo_id":"1350186164","filename":"file0"},{"photo_id":"1350186188","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350186183":["hashtag1","hashtag2"]},{"1350186207":["hashtag1","hashtag2"]},{"1350186201":["hashtag1","hashtag2"]},{"1350186164":["hashtag1","hashtag2"]},{"1350186188":["hashtag1","hashtag2"]},{"1350186169":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350186183, 1350186207, 1350186201, 1350186164, 1350186188, 1350186169)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.09866118431091 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:13:03.949343
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/12/image_06042025_21_12_02_0683.jpg', 2), ('/home/pi/Desktop/images/06042025/21/11/image_06042025_21_11_01_8980.jpg', 2), ('/home/pi/Desktop/images/06042025/11/08/image_06042025_11_08_01_5801.jpg', 2), ('/home/pi/Desktop/images/06042025/11/07/image_06042025_11_07_01_2945.jpg', 2), ('/home/pi/Desktop/images/06042025/11/06/image_06042025_11_06_01_6640.jpg', 2), ('/home/pi/Desktop/images/06042025/11/04/image_06042025_11_04_01_9690.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/12/image_06042025_21_12_02_0683.jpg', '/home/pi/Desktop/images/06042025/21/11/image_06042025_21_11_01_8980.jpg', '/home/pi/Desktop/images/06042025/11/08/image_06042025_11_08_01_5801.jpg', '/home/pi/Desktop/images/06042025/11/07/image_06042025_11_07_01_2945.jpg', '/home/pi/Desktop/images/06042025/11/06/image_06042025_11_06_01_6640.jpg', '/home/pi/Desktop/images/06042025/11/04/image_06042025_11_04_01_9690.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/12/image_06042025_21_12_02_0683.jpg
/home/pi/Desktop/images/06042025/21/11/image_06042025_21_11_01_8980.jpg
/home/pi/Desktop/images/06042025/11/08/image_06042025_11_08_01_5801.jpg
/home/pi/Desktop/images/06042025/11/07/image_06042025_11_07_01_2945.jpg
/home/pi/Desktop/images/06042025/11/06/image_06042025_11_06_01_6640.jpg
/home/pi/Desktop/images/06042025/11/04/image_06042025_11_04_01_9690.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186351","1350186354","1350186357","1350186362","1350186344","1350186338"],"photo_ids_order":["1350186338","1350186344","1350186351","1350186354","1350186357","1350186362"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/462cbc4449be120a221f11e729af574c.jpg","text":"TemporaryFile(/tmp/multipartBody5418365422790282500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966847740,"filename":"image_06042025_11_08_01_5801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/46236ea7ce82f953e4ab1e244d484651.jpg","text":"TemporaryFile(/tmp/multipartBody7907334393097280564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966847740,"filename":"image_06042025_11_07_01_2945.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dfde66f794305949dfba74a41e4a4758.jpg","text":"TemporaryFile(/tmp/multipartBody1379130153247083814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966847740,"filename":"image_06042025_11_06_01_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1a0d5afc253490edd493c3c2416dc39d.jpg","text":"TemporaryFile(/tmp/multipartBody4120425946410339771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966847740,"filename":"image_06042025_11_04_01_9690.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da60d1dad74f73203c839020e41482f7.jpg","text":"TemporaryFile(/tmp/multipartBody3786666191315281945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966847740,"filename":"image_06042025_21_11_01_8980.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/478047c466d4a7e5914d5fe56bd49c45.jpg","text":"TemporaryFile(/tmp/multipartBody5342294578210804870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966847740,"filename":"image_06042025_21_12_02_0683.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186351","file1":"1350186344","file0":"1350186338","file4":"1350186357","file5":"1350186362","file3":"1350186354"},"map_files_photo_id_array":[{"photo_id":"1350186362","filename":"file5"},{"photo_id":"1350186351","filename":"file2"},{"photo_id":"1350186357","filename":"file4"},{"photo_id":"1350186344","filename":"file1"},{"photo_id":"1350186338","filename":"file0"},{"photo_id":"1350186354","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350186351":["hashtag1","hashtag2"]},{"1350186354":["hashtag1","hashtag2"]},{"1350186357":["hashtag1","hashtag2"]},{"1350186362":["hashtag1","hashtag2"]},{"1350186344":["hashtag1","hashtag2"]},{"1350186338":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350186351, 1350186354, 1350186357, 1350186362, 1350186344, 1350186338)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.25675916671753 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:15:04.236008
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/14/image_06042025_21_14_02_1587.jpg', 2), ('/home/pi/Desktop/images/06042025/21/13/image_06042025_21_13_02_1069.jpg', 2), ('/home/pi/Desktop/images/06042025/11/03/image_06042025_11_03_01_9667.jpg', 2), ('/home/pi/Desktop/images/06042025/11/02/image_06042025_11_02_01_8289.jpg', 2), ('/home/pi/Desktop/images/06042025/11/01/image_06042025_11_01_02_0394.jpg', 2), ('/home/pi/Desktop/images/06042025/10/59/image_06042025_10_59_01_6348.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/14/image_06042025_21_14_02_1587.jpg', '/home/pi/Desktop/images/06042025/21/13/image_06042025_21_13_02_1069.jpg', '/home/pi/Desktop/images/06042025/11/03/image_06042025_11_03_01_9667.jpg', '/home/pi/Desktop/images/06042025/11/02/image_06042025_11_02_01_8289.jpg', '/home/pi/Desktop/images/06042025/11/01/image_06042025_11_01_02_0394.jpg', '/home/pi/Desktop/images/06042025/10/59/image_06042025_10_59_01_6348.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/14/image_06042025_21_14_02_1587.jpg
/home/pi/Desktop/images/06042025/21/13/image_06042025_21_13_02_1069.jpg
/home/pi/Desktop/images/06042025/11/03/image_06042025_11_03_01_9667.jpg
/home/pi/Desktop/images/06042025/11/02/image_06042025_11_02_01_8289.jpg
/home/pi/Desktop/images/06042025/11/01/image_06042025_11_01_02_0394.jpg
/home/pi/Desktop/images/06042025/10/59/image_06042025_10_59_01_6348.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186430","1350186412","1350186447","1350186456","1350186408","1350186478"],"photo_ids_order":["1350186408","1350186412","1350186430","1350186447","1350186456","1350186478"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b02f0b681ec718c89f900e664032e236.jpg","text":"TemporaryFile(/tmp/multipartBody3726339333015765666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966968131,"filename":"image_06042025_11_03_01_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/97465f6982cd77c7b4be2d3a911370eb.jpg","text":"TemporaryFile(/tmp/multipartBody4387693274036508930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966968131,"filename":"image_06042025_21_13_02_1069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/55fa5d5deee11f56ad2004fecac1565d.jpg","text":"TemporaryFile(/tmp/multipartBody6620862321975901694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966968131,"filename":"image_06042025_11_02_01_8289.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4144d33af6832306b0b18ce33760d931.jpg","text":"TemporaryFile(/tmp/multipartBody981326644948953002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966968131,"filename":"image_06042025_11_01_02_0394.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c72af68e3207ad4fd4b92ea8cb816d59.jpg","text":"TemporaryFile(/tmp/multipartBody2553574821283043341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966968131,"filename":"image_06042025_21_14_02_1587.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bb0caceaa84fed37bacdc51245cd14c4.jpg","text":"TemporaryFile(/tmp/multipartBody8686040190316997012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966968131,"filename":"image_06042025_10_59_01_6348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186430","file1":"1350186412","file0":"1350186408","file4":"1350186456","file5":"1350186478","file3":"1350186447"},"map_files_photo_id_array":[{"photo_id":"1350186478","filename":"file5"},{"photo_id":"1350186430","filename":"file2"},{"photo_id":"1350186456","filename":"file4"},{"photo_id":"1350186412","filename":"file1"},{"photo_id":"1350186408","filename":"file0"},{"photo_id":"1350186447","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350186430":["hashtag1","hashtag2"]},{"1350186412":["hashtag1","hashtag2"]},{"1350186447":["hashtag1","hashtag2"]},{"1350186456":["hashtag1","hashtag2"]},{"1350186408":["hashtag1","hashtag2"]},{"1350186478":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350186430, 1350186412, 1350186447, 1350186456, 1350186408, 1350186478)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.894760847091675 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:17:03.303067
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/16/image_06042025_21_16_02_1583.jpg', 2), ('/home/pi/Desktop/images/06042025/21/15/image_06042025_21_15_02_1564.jpg', 2), ('/home/pi/Desktop/images/06042025/10/56/image_06042025_10_56_01_8299.jpg', 2), ('/home/pi/Desktop/images/06042025/10/55/image_06042025_10_55_02_0221.jpg', 2), ('/home/pi/Desktop/images/06042025/10/54/image_06042025_10_54_01_6109.jpg', 2), ('/home/pi/Desktop/images/06042025/10/53/image_06042025_10_53_01_7725.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/16/image_06042025_21_16_02_1583.jpg', '/home/pi/Desktop/images/06042025/21/15/image_06042025_21_15_02_1564.jpg', '/home/pi/Desktop/images/06042025/10/56/image_06042025_10_56_01_8299.jpg', '/home/pi/Desktop/images/06042025/10/55/image_06042025_10_55_02_0221.jpg', '/home/pi/Desktop/images/06042025/10/54/image_06042025_10_54_01_6109.jpg', '/home/pi/Desktop/images/06042025/10/53/image_06042025_10_53_01_7725.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/16/image_06042025_21_16_02_1583.jpg
/home/pi/Desktop/images/06042025/21/15/image_06042025_21_15_02_1564.jpg
/home/pi/Desktop/images/06042025/10/56/image_06042025_10_56_01_8299.jpg
/home/pi/Desktop/images/06042025/10/55/image_06042025_10_55_02_0221.jpg
/home/pi/Desktop/images/06042025/10/54/image_06042025_10_54_01_6109.jpg
/home/pi/Desktop/images/06042025/10/53/image_06042025_10_53_01_7725.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186712","1350186643","1350186636","1350186668","1350186632","1350186629"],"photo_ids_order":["1350186629","1350186632","1350186636","1350186643","1350186668","1350186712"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/02b2535cb2463e8641573ed4eef7159e.jpg","text":"TemporaryFile(/tmp/multipartBody6279043892465373126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967087154,"filename":"image_06042025_10_53_01_7725.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c40f41aa7f34e0d9a5e5ed2f3d78155.jpg","text":"TemporaryFile(/tmp/multipartBody2459439849329477869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967087154,"filename":"image_06042025_10_55_02_0221.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9e7110025dc1cd83d3859b042a5a7f14.jpg","text":"TemporaryFile(/tmp/multipartBody7102073087633332080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967087154,"filename":"image_06042025_10_56_01_8299.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f28876d2730daca93af8eef2cae1bc8c.jpg","text":"TemporaryFile(/tmp/multipartBody1872956056829010934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967087154,"filename":"image_06042025_10_54_01_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fa34e62e22265ea75a06b32a834b8859.jpg","text":"TemporaryFile(/tmp/multipartBody88849312739293261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967087154,"filename":"image_06042025_21_15_02_1564.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e48dafddfbcefeb572660a0c389ea1af.jpg","text":"TemporaryFile(/tmp/multipartBody7396400806407690098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967087154,"filename":"image_06042025_21_16_02_1583.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186636","file1":"1350186632","file0":"1350186629","file4":"1350186668","file5":"1350186712","file3":"1350186643"},"map_files_photo_id_array":[{"photo_id":"1350186712","filename":"file5"},{"photo_id":"1350186636","filename":"file2"},{"photo_id":"1350186668","filename":"file4"},{"photo_id":"1350186632","filename":"file1"},{"photo_id":"1350186629","filename":"file0"},{"photo_id":"1350186643","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350186712":["hashtag1","hashtag2"]},{"1350186643":["hashtag1","hashtag2"]},{"1350186636":["hashtag1","hashtag2"]},{"1350186668":["hashtag1","hashtag2"]},{"1350186632":["hashtag1","hashtag2"]},{"1350186629":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350186712, 1350186643, 1350186636, 1350186668, 1350186632, 1350186629)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.93135476112366 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:19:03.636248
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/17/image_06042025_21_17_02_1639.jpg', 2), ('/home/pi/Desktop/images/06042025/10/52/image_06042025_10_52_01_5222.jpg', 2), ('/home/pi/Desktop/images/06042025/10/51/image_06042025_10_51_01_4879.jpg', 2), ('/home/pi/Desktop/images/06042025/10/50/image_06042025_10_50_02_3003.jpg', 2), ('/home/pi/Desktop/images/06042025/10/48/image_06042025_10_48_01_8647.jpg', 2), ('/home/pi/Desktop/images/06042025/10/42/image_06042025_10_42_01_8050.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/17/image_06042025_21_17_02_1639.jpg', '/home/pi/Desktop/images/06042025/10/52/image_06042025_10_52_01_5222.jpg', '/home/pi/Desktop/images/06042025/10/51/image_06042025_10_51_01_4879.jpg', '/home/pi/Desktop/images/06042025/10/50/image_06042025_10_50_02_3003.jpg', '/home/pi/Desktop/images/06042025/10/48/image_06042025_10_48_01_8647.jpg', '/home/pi/Desktop/images/06042025/10/42/image_06042025_10_42_01_8050.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/17/image_06042025_21_17_02_1639.jpg
/home/pi/Desktop/images/06042025/10/52/image_06042025_10_52_01_5222.jpg
/home/pi/Desktop/images/06042025/10/51/image_06042025_10_51_01_4879.jpg
/home/pi/Desktop/images/06042025/10/50/image_06042025_10_50_02_3003.jpg
/home/pi/Desktop/images/06042025/10/48/image_06042025_10_48_01_8647.jpg
/home/pi/Desktop/images/06042025/10/42/image_06042025_10_42_01_8050.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186897","1350186876","1350186906","1350186878","1350186991","1350186883"],"photo_ids_order":["1350186876","1350186878","1350186883","1350186897","1350186906","1350186991"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/49ec4bbd454c077845c5af0a3e3794f5.jpg","text":"TemporaryFile(/tmp/multipartBody5340433744806661004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967207878,"filename":"image_06042025_10_50_02_3003.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b34abd8faca2d16dc5957748199322ef.jpg","text":"TemporaryFile(/tmp/multipartBody8291668484912249055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967207878,"filename":"image_06042025_21_17_02_1639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/59e2777b62effa6a57aed4e138da9b56.jpg","text":"TemporaryFile(/tmp/multipartBody3746314264124364089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967207878,"filename":"image_06042025_10_48_01_8647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/663d85221997099abc8d965a68645da7.jpg","text":"TemporaryFile(/tmp/multipartBody7279449519160225821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967207878,"filename":"image_06042025_10_52_01_5222.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/edb59c4948bf8661f6cf637314f348bf.jpg","text":"TemporaryFile(/tmp/multipartBody6496700512881204984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967207878,"filename":"image_06042025_10_42_01_8050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a53c5fb2f09f499a0e01cc4437087178.jpg","text":"TemporaryFile(/tmp/multipartBody5286382232394639414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967207878,"filename":"image_06042025_10_51_01_4879.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186883","file1":"1350186878","file0":"1350186876","file4":"1350186906","file5":"1350186991","file3":"1350186897"},"map_files_photo_id_array":[{"photo_id":"1350186991","filename":"file5"},{"photo_id":"1350186883","filename":"file2"},{"photo_id":"1350186906","filename":"file4"},{"photo_id":"1350186878","filename":"file1"},{"photo_id":"1350186876","filename":"file0"},{"photo_id":"1350186897","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350186897":["hashtag1","hashtag2"]},{"1350186876":["hashtag1","hashtag2"]},{"1350186906":["hashtag1","hashtag2"]},{"1350186878":["hashtag1","hashtag2"]},{"1350186991":["hashtag1","hashtag2"]},{"1350186883":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350186897, 1350186876, 1350186906, 1350186878, 1350186991, 1350186883)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.15189242362976 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:21:04.122742
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/20/image_06042025_21_20_01_9705.jpg', 2), ('/home/pi/Desktop/images/06042025/21/19/image_06042025_21_19_01_5885.jpg', 2), ('/home/pi/Desktop/images/06042025/10/41/image_06042025_10_41_01_9435.jpg', 2), ('/home/pi/Desktop/images/06042025/10/40/image_06042025_10_40_01_8410.jpg', 2), ('/home/pi/Desktop/images/06042025/10/39/image_06042025_10_39_01_7834.jpg', 2), ('/home/pi/Desktop/images/06042025/10/37/image_06042025_10_37_02_0544.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/20/image_06042025_21_20_01_9705.jpg', '/home/pi/Desktop/images/06042025/21/19/image_06042025_21_19_01_5885.jpg', '/home/pi/Desktop/images/06042025/10/41/image_06042025_10_41_01_9435.jpg', '/home/pi/Desktop/images/06042025/10/40/image_06042025_10_40_01_8410.jpg', '/home/pi/Desktop/images/06042025/10/39/image_06042025_10_39_01_7834.jpg', '/home/pi/Desktop/images/06042025/10/37/image_06042025_10_37_02_0544.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/20/image_06042025_21_20_01_9705.jpg
/home/pi/Desktop/images/06042025/21/19/image_06042025_21_19_01_5885.jpg
/home/pi/Desktop/images/06042025/10/41/image_06042025_10_41_01_9435.jpg
/home/pi/Desktop/images/06042025/10/40/image_06042025_10_40_01_8410.jpg
/home/pi/Desktop/images/06042025/10/39/image_06042025_10_39_01_7834.jpg
/home/pi/Desktop/images/06042025/10/37/image_06042025_10_37_02_0544.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187131","1350187137","1350187151","1350187144","1350187123","1350187126"],"photo_ids_order":["1350187123","1350187126","1350187131","1350187137","1350187144","1350187151"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f26a6e0739391d38824fde1d68f54b7e.jpg","text":"TemporaryFile(/tmp/multipartBody5657421288026056787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967328103,"filename":"image_06042025_10_41_01_9435.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9b524029a28025c4e1606f9518be1505.jpg","text":"TemporaryFile(/tmp/multipartBody2463604307347663381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967328103,"filename":"image_06042025_10_40_01_8410.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9d6d1e53adf1fd012546d2bfdbaaded6.jpg","text":"TemporaryFile(/tmp/multipartBody4185077760730137894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967328103,"filename":"image_06042025_10_37_02_0544.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/93b5391924bbf0c2e40c5205239637f3.jpg","text":"TemporaryFile(/tmp/multipartBody6887879635653326224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967328103,"filename":"image_06042025_10_39_01_7834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0b287b097682742a826ec202c6b21723.jpg","text":"TemporaryFile(/tmp/multipartBody5256054241441682136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967328103,"filename":"image_06042025_21_20_01_9705.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ffb6f239170ba966f9249cdf9c9afd5d.jpg","text":"TemporaryFile(/tmp/multipartBody6709930776754739603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967328103,"filename":"image_06042025_21_19_01_5885.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187131","file1":"1350187126","file0":"1350187123","file4":"1350187144","file5":"1350187151","file3":"1350187137"},"map_files_photo_id_array":[{"photo_id":"1350187151","filename":"file5"},{"photo_id":"1350187131","filename":"file2"},{"photo_id":"1350187144","filename":"file4"},{"photo_id":"1350187126","filename":"file1"},{"photo_id":"1350187123","filename":"file0"},{"photo_id":"1350187137","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350187131":["hashtag1","hashtag2"]},{"1350187137":["hashtag1","hashtag2"]},{"1350187151":["hashtag1","hashtag2"]},{"1350187144":["hashtag1","hashtag2"]},{"1350187123":["hashtag1","hashtag2"]},{"1350187126":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350187131, 1350187137, 1350187151, 1350187144, 1350187123, 1350187126)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.852150201797485 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:23:03.244701
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/22/image_06042025_21_22_02_2123.jpg', 2), ('/home/pi/Desktop/images/06042025/21/21/image_06042025_21_21_02_1887.jpg', 2), ('/home/pi/Desktop/images/06042025/10/35/image_06042025_10_35_02_0094.jpg', 2), ('/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg', 2), ('/home/pi/Desktop/images/06042025/10/33/image_06042025_10_33_01_6127.jpg', 2), ('/home/pi/Desktop/images/06042025/10/32/image_06042025_10_32_01_6099.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/22/image_06042025_21_22_02_2123.jpg', '/home/pi/Desktop/images/06042025/21/21/image_06042025_21_21_02_1887.jpg', '/home/pi/Desktop/images/06042025/10/35/image_06042025_10_35_02_0094.jpg', '/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg', '/home/pi/Desktop/images/06042025/10/33/image_06042025_10_33_01_6127.jpg', '/home/pi/Desktop/images/06042025/10/32/image_06042025_10_32_01_6099.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/22/image_06042025_21_22_02_2123.jpg
/home/pi/Desktop/images/06042025/21/21/image_06042025_21_21_02_1887.jpg
/home/pi/Desktop/images/06042025/10/35/image_06042025_10_35_02_0094.jpg
/home/pi/Desktop/images/06042025/10/34/image_06042025_10_34_01_6947.jpg
/home/pi/Desktop/images/06042025/10/33/image_06042025_10_33_01_6127.jpg
/home/pi/Desktop/images/06042025/10/32/image_06042025_10_32_01_6099.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187322","1350187319","1350187480","1350187462","1350187426","1350187333"],"photo_ids_order":["1350187319","1350187322","1350187333","1350187426","1350187462","1350187480"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6c0512411931cd2134bf7ba776849a42.jpg","text":"TemporaryFile(/tmp/multipartBody4701873596634001270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967447074,"filename":"image_06042025_21_21_02_1887.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8badc236269b91f822138e5f86018c8d.jpg","text":"TemporaryFile(/tmp/multipartBody2963970058883927381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967447074,"filename":"image_06042025_21_22_02_2123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cfdbe404d6433c50d3ca6d200f0f8d24.jpg","text":"TemporaryFile(/tmp/multipartBody7674176240799784993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967447074,"filename":"image_06042025_10_32_01_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5376984b3df64e601b28a1676a454b1b.jpg","text":"TemporaryFile(/tmp/multipartBody5066389871678626176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967447074,"filename":"image_06042025_10_33_01_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec5f2c6b14d9fdc8f4163a9e509efe27.jpg","text":"TemporaryFile(/tmp/multipartBody8195675335006867548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967447074,"filename":"image_06042025_10_34_01_6947.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6fc4651816bd58ddc628aaeb2439307e.jpg","text":"TemporaryFile(/tmp/multipartBody6491560988064056268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967447074,"filename":"image_06042025_10_35_02_0094.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187333","file1":"1350187322","file0":"1350187319","file4":"1350187462","file5":"1350187480","file3":"1350187426"},"map_files_photo_id_array":[{"photo_id":"1350187480","filename":"file5"},{"photo_id":"1350187333","filename":"file2"},{"photo_id":"1350187462","filename":"file4"},{"photo_id":"1350187322","filename":"file1"},{"photo_id":"1350187319","filename":"file0"},{"photo_id":"1350187426","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350187322":["hashtag1","hashtag2"]},{"1350187319":["hashtag1","hashtag2"]},{"1350187480":["hashtag1","hashtag2"]},{"1350187462":["hashtag1","hashtag2"]},{"1350187426":["hashtag1","hashtag2"]},{"1350187333":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350187322, 1350187319, 1350187480, 1350187462, 1350187426, 1350187333)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.21754574775696 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:25:06.518655
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/24/image_06042025_21_24_01_4276.jpg', 2), ('/home/pi/Desktop/images/06042025/21/23/image_06042025_21_23_02_1280.jpg', 2), ('/home/pi/Desktop/images/06042025/10/31/image_06042025_10_31_01_2807.jpg', 2), ('/home/pi/Desktop/images/06042025/10/30/image_06042025_10_30_01_8352.jpg', 2), ('/home/pi/Desktop/images/06042025/10/29/image_06042025_10_29_01_7962.jpg', 2), ('/home/pi/Desktop/images/06042025/10/28/image_06042025_10_28_02_1499.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/24/image_06042025_21_24_01_4276.jpg', '/home/pi/Desktop/images/06042025/21/23/image_06042025_21_23_02_1280.jpg', '/home/pi/Desktop/images/06042025/10/31/image_06042025_10_31_01_2807.jpg', '/home/pi/Desktop/images/06042025/10/30/image_06042025_10_30_01_8352.jpg', '/home/pi/Desktop/images/06042025/10/29/image_06042025_10_29_01_7962.jpg', '/home/pi/Desktop/images/06042025/10/28/image_06042025_10_28_02_1499.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/24/image_06042025_21_24_01_4276.jpg
/home/pi/Desktop/images/06042025/21/23/image_06042025_21_23_02_1280.jpg
/home/pi/Desktop/images/06042025/10/31/image_06042025_10_31_01_2807.jpg
/home/pi/Desktop/images/06042025/10/30/image_06042025_10_30_01_8352.jpg
/home/pi/Desktop/images/06042025/10/29/image_06042025_10_29_01_7962.jpg
/home/pi/Desktop/images/06042025/10/28/image_06042025_10_28_02_1499.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187510","1350187623","1350187545","1350187515","1350187565","1350187652"],"photo_ids_order":["1350187510","1350187515","1350187545","1350187565","1350187623","1350187652"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c664ab09fee4e86c05c6f7e88bd9176b.jpg","text":"TemporaryFile(/tmp/multipartBody5078818008905621065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967571749,"filename":"image_06042025_21_24_01_4276.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b4502fb5d4ea5f071e04f246cc425f0f.jpg","text":"TemporaryFile(/tmp/multipartBody7496951156799051313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967571749,"filename":"image_06042025_10_29_01_7962.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a7281322093f80c90978b9353985ece3.jpg","text":"TemporaryFile(/tmp/multipartBody9203008271946736166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967571749,"filename":"image_06042025_10_31_01_2807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a05cb4ccc0c00bda2e3c6cab7bc1b072.jpg","text":"TemporaryFile(/tmp/multipartBody5043663593041242397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967571749,"filename":"image_06042025_21_23_02_1280.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e125462aa3a6861eaa0dcb5da87e41cc.jpg","text":"TemporaryFile(/tmp/multipartBody4186788891600567673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967571749,"filename":"image_06042025_10_30_01_8352.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/663af66021a4909fd5eac6ef664e0755.jpg","text":"TemporaryFile(/tmp/multipartBody5592829088759520915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967571749,"filename":"image_06042025_10_28_02_1499.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187545","file1":"1350187515","file0":"1350187510","file4":"1350187623","file5":"1350187652","file3":"1350187565"},"map_files_photo_id_array":[{"photo_id":"1350187652","filename":"file5"},{"photo_id":"1350187545","filename":"file2"},{"photo_id":"1350187623","filename":"file4"},{"photo_id":"1350187515","filename":"file1"},{"photo_id":"1350187510","filename":"file0"},{"photo_id":"1350187565","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350187510":["hashtag1","hashtag2"]},{"1350187623":["hashtag1","hashtag2"]},{"1350187545":["hashtag1","hashtag2"]},{"1350187515":["hashtag1","hashtag2"]},{"1350187565":["hashtag1","hashtag2"]},{"1350187652":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350187510, 1350187623, 1350187545, 1350187515, 1350187565, 1350187652)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.0558135509491 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:27:04.985179
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/26/image_06042025_21_26_01_7569.jpg', 2), ('/home/pi/Desktop/images/06042025/21/25/image_06042025_21_25_02_1432.jpg', 2), ('/home/pi/Desktop/images/06042025/10/26/image_06042025_10_26_01_6789.jpg', 2), ('/home/pi/Desktop/images/06042025/10/25/image_06042025_10_25_01_4381.jpg', 2), ('/home/pi/Desktop/images/06042025/10/24/image_06042025_10_24_02_0686.jpg', 2), ('/home/pi/Desktop/images/06042025/10/22/image_06042025_10_22_01_5100.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/26/image_06042025_21_26_01_7569.jpg', '/home/pi/Desktop/images/06042025/21/25/image_06042025_21_25_02_1432.jpg', '/home/pi/Desktop/images/06042025/10/26/image_06042025_10_26_01_6789.jpg', '/home/pi/Desktop/images/06042025/10/25/image_06042025_10_25_01_4381.jpg', '/home/pi/Desktop/images/06042025/10/24/image_06042025_10_24_02_0686.jpg', '/home/pi/Desktop/images/06042025/10/22/image_06042025_10_22_01_5100.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/26/image_06042025_21_26_01_7569.jpg
/home/pi/Desktop/images/06042025/21/25/image_06042025_21_25_02_1432.jpg
/home/pi/Desktop/images/06042025/10/26/image_06042025_10_26_01_6789.jpg
/home/pi/Desktop/images/06042025/10/25/image_06042025_10_25_01_4381.jpg
/home/pi/Desktop/images/06042025/10/24/image_06042025_10_24_02_0686.jpg
/home/pi/Desktop/images/06042025/10/22/image_06042025_10_22_01_5100.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188055","1350188001","1350188095","1350188032","1350188023","1350188005"],"photo_ids_order":["1350188001","1350188005","1350188023","1350188032","1350188055","1350188095"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/423d3783e0ee2313304ee778e357ab81.jpg","text":"TemporaryFile(/tmp/multipartBody5412379917108310291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967689713,"filename":"image_06042025_10_24_02_0686.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/62bb6aea96d2ed4668d9b1c09f80e009.jpg","text":"TemporaryFile(/tmp/multipartBody6719435202864673651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967689713,"filename":"image_06042025_21_26_01_7569.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/06af0200c75642df741aa791f2729935.jpg","text":"TemporaryFile(/tmp/multipartBody7106704303764131552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967689713,"filename":"image_06042025_10_22_01_5100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f9d18f88f2e5f482bda88a0befd150fb.jpg","text":"TemporaryFile(/tmp/multipartBody8640388148169935045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967689713,"filename":"image_06042025_10_25_01_4381.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ac9da92bdfb5729a41deb5db32a28e33.jpg","text":"TemporaryFile(/tmp/multipartBody7368286576098611191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967689713,"filename":"image_06042025_10_26_01_6789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6ecd063a9d895ef66aa0c3b068802b64.jpg","text":"TemporaryFile(/tmp/multipartBody4569973508011785563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967689713,"filename":"image_06042025_21_25_02_1432.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188023","file1":"1350188005","file0":"1350188001","file4":"1350188055","file5":"1350188095","file3":"1350188032"},"map_files_photo_id_array":[{"photo_id":"1350188095","filename":"file5"},{"photo_id":"1350188023","filename":"file2"},{"photo_id":"1350188055","filename":"file4"},{"photo_id":"1350188005","filename":"file1"},{"photo_id":"1350188001","filename":"file0"},{"photo_id":"1350188032","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350188055":["hashtag1","hashtag2"]},{"1350188001":["hashtag1","hashtag2"]},{"1350188095":["hashtag1","hashtag2"]},{"1350188032":["hashtag1","hashtag2"]},{"1350188023":["hashtag1","hashtag2"]},{"1350188005":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350188055, 1350188001, 1350188095, 1350188032, 1350188023, 1350188005)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.98576474189758 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:29:03.841982
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/28/image_06042025_21_28_02_2492.jpg', 2), ('/home/pi/Desktop/images/06042025/21/27/image_06042025_21_27_01_4566.jpg', 2), ('/home/pi/Desktop/images/06042025/10/21/image_06042025_10_21_01_1930.jpg', 2), ('/home/pi/Desktop/images/06042025/10/19/image_06042025_10_19_02_1535.jpg', 2), ('/home/pi/Desktop/images/06042025/10/16/image_06042025_10_16_01_5626.jpg', 2), ('/home/pi/Desktop/images/06042025/10/15/image_06042025_10_15_01_5782.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/28/image_06042025_21_28_02_2492.jpg', '/home/pi/Desktop/images/06042025/21/27/image_06042025_21_27_01_4566.jpg', '/home/pi/Desktop/images/06042025/10/21/image_06042025_10_21_01_1930.jpg', '/home/pi/Desktop/images/06042025/10/19/image_06042025_10_19_02_1535.jpg', '/home/pi/Desktop/images/06042025/10/16/image_06042025_10_16_01_5626.jpg', '/home/pi/Desktop/images/06042025/10/15/image_06042025_10_15_01_5782.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/28/image_06042025_21_28_02_2492.jpg
/home/pi/Desktop/images/06042025/21/27/image_06042025_21_27_01_4566.jpg
/home/pi/Desktop/images/06042025/10/21/image_06042025_10_21_01_1930.jpg
/home/pi/Desktop/images/06042025/10/19/image_06042025_10_19_02_1535.jpg
/home/pi/Desktop/images/06042025/10/16/image_06042025_10_16_01_5626.jpg
/home/pi/Desktop/images/06042025/10/15/image_06042025_10_15_01_5782.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188529","1350188520","1350188525","1350188549","1350188539","1350188521"],"photo_ids_order":["1350188520","1350188521","1350188525","1350188529","1350188539","1350188549"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4b5084d307a9400864f70dd123043853.jpg","text":"TemporaryFile(/tmp/multipartBody3667852873791978130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967807546,"filename":"image_06042025_10_19_02_1535.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/07246e71dea28a3145e1a0a2b76a9b7e.jpg","text":"TemporaryFile(/tmp/multipartBody6176415947851205393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967807546,"filename":"image_06042025_21_28_02_2492.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a5c622ac183928bd049bd0940ef19361.jpg","text":"TemporaryFile(/tmp/multipartBody40449388545854918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967807546,"filename":"image_06042025_10_21_01_1930.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4cd72a30c88431b3cea62044ef0be43c.jpg","text":"TemporaryFile(/tmp/multipartBody8631229264986828998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967807546,"filename":"image_06042025_10_15_01_5782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b22b61790618fcd681c1c93caefd2c86.jpg","text":"TemporaryFile(/tmp/multipartBody7621144331103505384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967807546,"filename":"image_06042025_10_16_01_5626.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/922b769a462be1fea4c68edc29fdb6fe.jpg","text":"TemporaryFile(/tmp/multipartBody7261601219546864627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967807546,"filename":"image_06042025_21_27_01_4566.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188525","file1":"1350188521","file0":"1350188520","file4":"1350188539","file5":"1350188549","file3":"1350188529"},"map_files_photo_id_array":[{"photo_id":"1350188549","filename":"file5"},{"photo_id":"1350188525","filename":"file2"},{"photo_id":"1350188539","filename":"file4"},{"photo_id":"1350188521","filename":"file1"},{"photo_id":"1350188520","filename":"file0"},{"photo_id":"1350188529","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350188529":["hashtag1","hashtag2"]},{"1350188520":["hashtag1","hashtag2"]},{"1350188525":["hashtag1","hashtag2"]},{"1350188549":["hashtag1","hashtag2"]},{"1350188539":["hashtag1","hashtag2"]},{"1350188521":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350188529, 1350188520, 1350188525, 1350188549, 1350188539, 1350188521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.79767942428589 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:31:03.441341
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/30/image_06042025_21_30_01_7627.jpg', 2), ('/home/pi/Desktop/images/06042025/21/29/image_06042025_21_29_01_9972.jpg', 2), ('/home/pi/Desktop/images/06042025/10/14/image_06042025_10_14_01_4681.jpg', 2), ('/home/pi/Desktop/images/06042025/10/11/image_06042025_10_11_01_9232.jpg', 2), ('/home/pi/Desktop/images/06042025/10/10/image_06042025_10_10_01_6012.jpg', 2), ('/home/pi/Desktop/images/06042025/10/09/image_06042025_10_09_01_5587.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/30/image_06042025_21_30_01_7627.jpg', '/home/pi/Desktop/images/06042025/21/29/image_06042025_21_29_01_9972.jpg', '/home/pi/Desktop/images/06042025/10/14/image_06042025_10_14_01_4681.jpg', '/home/pi/Desktop/images/06042025/10/11/image_06042025_10_11_01_9232.jpg', '/home/pi/Desktop/images/06042025/10/10/image_06042025_10_10_01_6012.jpg', '/home/pi/Desktop/images/06042025/10/09/image_06042025_10_09_01_5587.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/30/image_06042025_21_30_01_7627.jpg
/home/pi/Desktop/images/06042025/21/29/image_06042025_21_29_01_9972.jpg
/home/pi/Desktop/images/06042025/10/14/image_06042025_10_14_01_4681.jpg
/home/pi/Desktop/images/06042025/10/11/image_06042025_10_11_01_9232.jpg
/home/pi/Desktop/images/06042025/10/10/image_06042025_10_10_01_6012.jpg
/home/pi/Desktop/images/06042025/10/09/image_06042025_10_09_01_5587.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188714","1350188698","1350188702","1350188722","1350188707","1350188730"],"photo_ids_order":["1350188698","1350188702","1350188707","1350188714","1350188722","1350188730"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25a3b2e264c3e5ebfdc37111e7b54cb8.jpg","text":"TemporaryFile(/tmp/multipartBody5310802779676691114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967927533,"filename":"image_06042025_10_11_01_9232.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d339a63b9d707fe89820ce0705341634.jpg","text":"TemporaryFile(/tmp/multipartBody1989519482573661012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967927533,"filename":"image_06042025_21_30_01_7627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/66deaea22fb8c352f82a71ab5c35c6c4.jpg","text":"TemporaryFile(/tmp/multipartBody1131103480795418748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967927533,"filename":"image_06042025_21_29_01_9972.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/98b8edbfee22db7b1cfd3d2b76867a6c.jpg","text":"TemporaryFile(/tmp/multipartBody1460842182331822917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967927533,"filename":"image_06042025_10_10_01_6012.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c124c6a59d4874c6901706ca19ab1541.jpg","text":"TemporaryFile(/tmp/multipartBody1805155886028525233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967927533,"filename":"image_06042025_10_14_01_4681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/35bfc91fca4118934ce55913872a1335.jpg","text":"TemporaryFile(/tmp/multipartBody7102943622498635970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967927533,"filename":"image_06042025_10_09_01_5587.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188707","file1":"1350188702","file0":"1350188698","file4":"1350188722","file5":"1350188730","file3":"1350188714"},"map_files_photo_id_array":[{"photo_id":"1350188730","filename":"file5"},{"photo_id":"1350188707","filename":"file2"},{"photo_id":"1350188722","filename":"file4"},{"photo_id":"1350188702","filename":"file1"},{"photo_id":"1350188698","filename":"file0"},{"photo_id":"1350188714","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350188714":["hashtag1","hashtag2"]},{"1350188698":["hashtag1","hashtag2"]},{"1350188702":["hashtag1","hashtag2"]},{"1350188722":["hashtag1","hashtag2"]},{"1350188707":["hashtag1","hashtag2"]},{"1350188730":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350188714, 1350188698, 1350188702, 1350188722, 1350188707, 1350188730)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.08422303199768 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:33:03.406119
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/32/image_06042025_21_32_01_2992.jpg', 2), ('/home/pi/Desktop/images/06042025/21/31/image_06042025_21_31_01_1951.jpg', 2), ('/home/pi/Desktop/images/06042025/10/04/image_06042025_10_04_02_1694.jpg', 2), ('/home/pi/Desktop/images/06042025/10/03/image_06042025_10_03_01_8134.jpg', 2), ('/home/pi/Desktop/images/06042025/10/01/image_06042025_10_01_01_6524.jpg', 2), ('/home/pi/Desktop/images/06042025/09/59/image_06042025_09_59_02_1084.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/32/image_06042025_21_32_01_2992.jpg', '/home/pi/Desktop/images/06042025/21/31/image_06042025_21_31_01_1951.jpg', '/home/pi/Desktop/images/06042025/10/04/image_06042025_10_04_02_1694.jpg', '/home/pi/Desktop/images/06042025/10/03/image_06042025_10_03_01_8134.jpg', '/home/pi/Desktop/images/06042025/10/01/image_06042025_10_01_01_6524.jpg', '/home/pi/Desktop/images/06042025/09/59/image_06042025_09_59_02_1084.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/32/image_06042025_21_32_01_2992.jpg
/home/pi/Desktop/images/06042025/21/31/image_06042025_21_31_01_1951.jpg
/home/pi/Desktop/images/06042025/10/04/image_06042025_10_04_02_1694.jpg
/home/pi/Desktop/images/06042025/10/03/image_06042025_10_03_01_8134.jpg
/home/pi/Desktop/images/06042025/10/01/image_06042025_10_01_01_6524.jpg
/home/pi/Desktop/images/06042025/09/59/image_06042025_09_59_02_1084.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188817","1350188771","1350188795","1350188768","1350188809","1350188778"],"photo_ids_order":["1350188768","1350188771","1350188778","1350188795","1350188809","1350188817"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/309518da28e456b6585c42b8801f28b8.jpg","text":"TemporaryFile(/tmp/multipartBody3390572230874018310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968047420,"filename":"image_06042025_09_59_02_1084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e1c4de03146249407d7752668552f46c.jpg","text":"TemporaryFile(/tmp/multipartBody3722143894413623238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968047420,"filename":"image_06042025_21_31_01_1951.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba329414cd9bb5421b1e292eaf4f2327.jpg","text":"TemporaryFile(/tmp/multipartBody2568874394578430105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968047420,"filename":"image_06042025_10_03_01_8134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6875215cf5eafe5ae2348853691b97cc.jpg","text":"TemporaryFile(/tmp/multipartBody5316322203108420592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968047420,"filename":"image_06042025_21_32_01_2992.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c9a19734f86eeca71c87a0bece332aaf.jpg","text":"TemporaryFile(/tmp/multipartBody6040034559667845060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968047420,"filename":"image_06042025_10_01_01_6524.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ffc229a778f6988045b24a4d91e93e0d.jpg","text":"TemporaryFile(/tmp/multipartBody8971609446208291014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968047420,"filename":"image_06042025_10_04_02_1694.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188778","file1":"1350188771","file0":"1350188768","file4":"1350188809","file5":"1350188817","file3":"1350188795"},"map_files_photo_id_array":[{"photo_id":"1350188817","filename":"file5"},{"photo_id":"1350188778","filename":"file2"},{"photo_id":"1350188809","filename":"file4"},{"photo_id":"1350188771","filename":"file1"},{"photo_id":"1350188768","filename":"file0"},{"photo_id":"1350188795","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350188817":["hashtag1","hashtag2"]},{"1350188771":["hashtag1","hashtag2"]},{"1350188795":["hashtag1","hashtag2"]},{"1350188768":["hashtag1","hashtag2"]},{"1350188809":["hashtag1","hashtag2"]},{"1350188778":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350188817, 1350188771, 1350188795, 1350188768, 1350188809, 1350188778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.61123490333557 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:35:03.408203
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/34/image_06042025_21_34_01_7571.jpg', 2), ('/home/pi/Desktop/images/06042025/21/33/image_06042025_21_33_01_3299.jpg', 2), ('/home/pi/Desktop/images/06042025/09/57/image_06042025_09_57_01_6691.jpg', 2), ('/home/pi/Desktop/images/06042025/09/56/image_06042025_09_56_01_5089.jpg', 2), ('/home/pi/Desktop/images/06042025/09/55/image_06042025_09_55_01_5672.jpg', 2), ('/home/pi/Desktop/images/06042025/09/54/image_06042025_09_54_02_1288.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/34/image_06042025_21_34_01_7571.jpg', '/home/pi/Desktop/images/06042025/21/33/image_06042025_21_33_01_3299.jpg', '/home/pi/Desktop/images/06042025/09/57/image_06042025_09_57_01_6691.jpg', '/home/pi/Desktop/images/06042025/09/56/image_06042025_09_56_01_5089.jpg', '/home/pi/Desktop/images/06042025/09/55/image_06042025_09_55_01_5672.jpg', '/home/pi/Desktop/images/06042025/09/54/image_06042025_09_54_02_1288.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/34/image_06042025_21_34_01_7571.jpg
/home/pi/Desktop/images/06042025/21/33/image_06042025_21_33_01_3299.jpg
/home/pi/Desktop/images/06042025/09/57/image_06042025_09_57_01_6691.jpg
/home/pi/Desktop/images/06042025/09/56/image_06042025_09_56_01_5089.jpg
/home/pi/Desktop/images/06042025/09/55/image_06042025_09_55_01_5672.jpg
/home/pi/Desktop/images/06042025/09/54/image_06042025_09_54_02_1288.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188910","1350188950","1350188938","1350188905","1350188964","1350188943"],"photo_ids_order":["1350188905","1350188910","1350188938","1350188943","1350188950","1350188964"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/031e93b687029d5e9fea08e5df1bd95c.jpg","text":"TemporaryFile(/tmp/multipartBody6800475086320273159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968167250,"filename":"image_06042025_21_33_01_3299.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b8a2f91ae95007120694eeb1fa11a5ff.jpg","text":"TemporaryFile(/tmp/multipartBody8168623385874505432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968167250,"filename":"image_06042025_09_55_01_5672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fab06f486f1fc6fab046be16d022f53a.jpg","text":"TemporaryFile(/tmp/multipartBody71109035972839162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968167250,"filename":"image_06042025_09_57_01_6691.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8861995030b71104df3996e115c39ea.jpg","text":"TemporaryFile(/tmp/multipartBody6024915818564770808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968167250,"filename":"image_06042025_21_34_01_7571.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/006f484667ff8aead991d613db723d43.jpg","text":"TemporaryFile(/tmp/multipartBody6232873569382448263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968167250,"filename":"image_06042025_09_54_02_1288.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7508a8d5e310d2932f2b2ae093b1445b.jpg","text":"TemporaryFile(/tmp/multipartBody6681241925416996869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968167250,"filename":"image_06042025_09_56_01_5089.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188938","file1":"1350188910","file0":"1350188905","file4":"1350188950","file5":"1350188964","file3":"1350188943"},"map_files_photo_id_array":[{"photo_id":"1350188964","filename":"file5"},{"photo_id":"1350188938","filename":"file2"},{"photo_id":"1350188950","filename":"file4"},{"photo_id":"1350188910","filename":"file1"},{"photo_id":"1350188905","filename":"file0"},{"photo_id":"1350188943","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350188910":["hashtag1","hashtag2"]},{"1350188950":["hashtag1","hashtag2"]},{"1350188938":["hashtag1","hashtag2"]},{"1350188905":["hashtag1","hashtag2"]},{"1350188964":["hashtag1","hashtag2"]},{"1350188943":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350188910, 1350188950, 1350188938, 1350188905, 1350188964, 1350188943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 99.46612811088562 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:37:03.592593
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/36/image_06042025_21_36_01_6199.jpg', 2), ('/home/pi/Desktop/images/06042025/21/35/image_06042025_21_35_01_5304.jpg', 2), ('/home/pi/Desktop/images/06042025/09/53/image_06042025_09_53_02_1699.jpg', 2), ('/home/pi/Desktop/images/06042025/09/51/image_06042025_09_51_01_3212.jpg', 2), ('/home/pi/Desktop/images/06042025/09/50/image_06042025_09_50_02_0284.jpg', 2), ('/home/pi/Desktop/images/06042025/09/43/image_06042025_09_43_01_8221.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/36/image_06042025_21_36_01_6199.jpg', '/home/pi/Desktop/images/06042025/21/35/image_06042025_21_35_01_5304.jpg', '/home/pi/Desktop/images/06042025/09/53/image_06042025_09_53_02_1699.jpg', '/home/pi/Desktop/images/06042025/09/51/image_06042025_09_51_01_3212.jpg', '/home/pi/Desktop/images/06042025/09/50/image_06042025_09_50_02_0284.jpg', '/home/pi/Desktop/images/06042025/09/43/image_06042025_09_43_01_8221.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/36/image_06042025_21_36_01_6199.jpg
/home/pi/Desktop/images/06042025/21/35/image_06042025_21_35_01_5304.jpg
/home/pi/Desktop/images/06042025/09/53/image_06042025_09_53_02_1699.jpg
/home/pi/Desktop/images/06042025/09/51/image_06042025_09_51_01_3212.jpg
/home/pi/Desktop/images/06042025/09/50/image_06042025_09_50_02_0284.jpg
/home/pi/Desktop/images/06042025/09/43/image_06042025_09_43_01_8221.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189242","1350189200","1350189253","1350189313","1350189309","1350189300"],"photo_ids_order":["1350189200","1350189242","1350189253","1350189300","1350189309","1350189313"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d49627f867b58db947f9ac57e2c1fd58.jpg","text":"TemporaryFile(/tmp/multipartBody6884543907642556657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968287514,"filename":"image_06042025_21_35_01_5304.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/81d4c85dc56996521804aaec07eddfed.jpg","text":"TemporaryFile(/tmp/multipartBody6412459858898465580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968287514,"filename":"image_06042025_21_36_01_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e990842345e6dbf5d3320607df7ee54c.jpg","text":"TemporaryFile(/tmp/multipartBody6416440377592814761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968287514,"filename":"image_06042025_09_53_02_1699.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a53090d811df8fe0dbdaaa46038d844a.jpg","text":"TemporaryFile(/tmp/multipartBody5868487669307457453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968287514,"filename":"image_06042025_09_43_01_8221.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/57c8b2f07708a553d99275bf91abfb97.jpg","text":"TemporaryFile(/tmp/multipartBody2870089680895075010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968287514,"filename":"image_06042025_09_50_02_0284.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e8cd57f0ad569696a4790badba93dc6a.jpg","text":"TemporaryFile(/tmp/multipartBody3957613474803890792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968287514,"filename":"image_06042025_09_51_01_3212.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189253","file1":"1350189242","file0":"1350189200","file4":"1350189309","file5":"1350189313","file3":"1350189300"},"map_files_photo_id_array":[{"photo_id":"1350189313","filename":"file5"},{"photo_id":"1350189253","filename":"file2"},{"photo_id":"1350189309","filename":"file4"},{"photo_id":"1350189242","filename":"file1"},{"photo_id":"1350189200","filename":"file0"},{"photo_id":"1350189300","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350189242":["hashtag1","hashtag2"]},{"1350189200":["hashtag1","hashtag2"]},{"1350189253":["hashtag1","hashtag2"]},{"1350189313":["hashtag1","hashtag2"]},{"1350189309":["hashtag1","hashtag2"]},{"1350189300":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350189242, 1350189200, 1350189253, 1350189313, 1350189309, 1350189300)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.62737989425659 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:39:03.536818
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/38/image_06042025_21_38_01_6426.jpg', 2), ('/home/pi/Desktop/images/06042025/21/37/image_06042025_21_37_01_6021.jpg', 2), ('/home/pi/Desktop/images/06042025/09/42/image_06042025_09_42_01_2574.jpg', 2), ('/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg', 2), ('/home/pi/Desktop/images/06042025/09/40/image_06042025_09_40_01_7264.jpg', 2), ('/home/pi/Desktop/images/06042025/09/33/image_06042025_09_33_01_8512.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/38/image_06042025_21_38_01_6426.jpg', '/home/pi/Desktop/images/06042025/21/37/image_06042025_21_37_01_6021.jpg', '/home/pi/Desktop/images/06042025/09/42/image_06042025_09_42_01_2574.jpg', '/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg', '/home/pi/Desktop/images/06042025/09/40/image_06042025_09_40_01_7264.jpg', '/home/pi/Desktop/images/06042025/09/33/image_06042025_09_33_01_8512.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/38/image_06042025_21_38_01_6426.jpg
/home/pi/Desktop/images/06042025/21/37/image_06042025_21_37_01_6021.jpg
/home/pi/Desktop/images/06042025/09/42/image_06042025_09_42_01_2574.jpg
/home/pi/Desktop/images/06042025/09/41/image_06042025_09_41_02_1649.jpg
/home/pi/Desktop/images/06042025/09/40/image_06042025_09_40_01_7264.jpg
/home/pi/Desktop/images/06042025/09/33/image_06042025_09_33_01_8512.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189476","1350189437","1350189512","1350189484","1350189493","1350189450"],"photo_ids_order":["1350189437","1350189450","1350189476","1350189484","1350189493","1350189512"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c99bd1dd5a23c6b545fead274fc998b0.jpg","text":"TemporaryFile(/tmp/multipartBody2157656471456115866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968407518,"filename":"image_06042025_09_42_01_2574.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e06360316aeaa4aeef1b36a436e837dc.jpg","text":"TemporaryFile(/tmp/multipartBody4087711776175338229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968407518,"filename":"image_06042025_21_38_01_6426.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e521eda6eebbe62b476448176a9909e.jpg","text":"TemporaryFile(/tmp/multipartBody7199074394118120909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968407518,"filename":"image_06042025_09_33_01_8512.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3d8351818dd326d25d7e3291cad3051c.jpg","text":"TemporaryFile(/tmp/multipartBody7269937581076703938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968407518,"filename":"image_06042025_09_41_02_1649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9d8fcee3d388a61e85c7d240927875f2.jpg","text":"TemporaryFile(/tmp/multipartBody776920716498042757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968407518,"filename":"image_06042025_09_40_01_7264.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e623d781df39178a7c9713081705608f.jpg","text":"TemporaryFile(/tmp/multipartBody2383452059930745018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968407518,"filename":"image_06042025_21_37_01_6021.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189476","file1":"1350189450","file0":"1350189437","file4":"1350189493","file5":"1350189512","file3":"1350189484"},"map_files_photo_id_array":[{"photo_id":"1350189512","filename":"file5"},{"photo_id":"1350189476","filename":"file2"},{"photo_id":"1350189493","filename":"file4"},{"photo_id":"1350189450","filename":"file1"},{"photo_id":"1350189437","filename":"file0"},{"photo_id":"1350189484","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350189476":["hashtag1","hashtag2"]},{"1350189437":["hashtag1","hashtag2"]},{"1350189512":["hashtag1","hashtag2"]},{"1350189484":["hashtag1","hashtag2"]},{"1350189493":["hashtag1","hashtag2"]},{"1350189450":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350189476, 1350189437, 1350189512, 1350189484, 1350189493, 1350189450)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.85224413871765 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:41:03.243031
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/39/image_06042025_21_39_01_7279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', 2), ('/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', 2), ('/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', 2), ('/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', 2), ('/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/39/image_06042025_21_39_01_7279.jpg', '/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg', '/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg', '/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg', '/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg', '/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/39/image_06042025_21_39_01_7279.jpg
/home/pi/Desktop/images/06042025/09/27/image_06042025_09_27_01_5489.jpg
/home/pi/Desktop/images/06042025/09/26/image_06042025_09_26_02_0874.jpg
/home/pi/Desktop/images/06042025/09/23/image_06042025_09_23_01_9279.jpg
/home/pi/Desktop/images/06042025/09/22/image_06042025_09_22_01_7642.jpg
/home/pi/Desktop/images/06042025/09/20/image_06042025_09_20_01_2031.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189764","1350189671","1350189794","1350189775","1350189730","1350189624"],"photo_ids_order":["1350189624","1350189671","1350189730","1350189764","1350189775","1350189794"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/73d6699506b8bdb77c8c318650acc5ac.jpg","text":"TemporaryFile(/tmp/multipartBody3428405654105163569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968527374,"filename":"image_06042025_09_23_01_9279.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e66782d9bc0c52634a3eeb0aeda247f3.jpg","text":"TemporaryFile(/tmp/multipartBody7666904748367166392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968527374,"filename":"image_06042025_09_27_01_5489.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/662fd9be7c9c928410818a7f25dd396a.jpg","text":"TemporaryFile(/tmp/multipartBody4345015594998812648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968527374,"filename":"image_06042025_09_20_01_2031.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8767af9854238135ac2491a53114efd6.jpg","text":"TemporaryFile(/tmp/multipartBody155886740642019735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968527374,"filename":"image_06042025_09_22_01_7642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec136c1d51f016f8973ee53a97a4df66.jpg","text":"TemporaryFile(/tmp/multipartBody5367994769542449107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968527374,"filename":"image_06042025_09_26_02_0874.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c392375d38eae96e37c36c36e12ed423.jpg","text":"TemporaryFile(/tmp/multipartBody921282788407375051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968527374,"filename":"image_06042025_21_39_01_7279.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189730","file1":"1350189671","file0":"1350189624","file4":"1350189775","file5":"1350189794","file3":"1350189764"},"map_files_photo_id_array":[{"photo_id":"1350189794","filename":"file5"},{"photo_id":"1350189730","filename":"file2"},{"photo_id":"1350189775","filename":"file4"},{"photo_id":"1350189671","filename":"file1"},{"photo_id":"1350189624","filename":"file0"},{"photo_id":"1350189764","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350189764":["hashtag1","hashtag2"]},{"1350189671":["hashtag1","hashtag2"]},{"1350189794":["hashtag1","hashtag2"]},{"1350189775":["hashtag1","hashtag2"]},{"1350189730":["hashtag1","hashtag2"]},{"1350189624":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350189764, 1350189671, 1350189794, 1350189775, 1350189730, 1350189624)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.634727239608765 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:43:03.337786
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/41/image_06042025_21_41_01_5982.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2), ('/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', 2), ('/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', 2), ('/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg', 2), ('/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/41/image_06042025_21_41_01_5982.jpg', '/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', '/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', '/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', '/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg', '/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/41/image_06042025_21_41_01_5982.jpg
/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg
/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg
/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg
/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg
/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 4.099613666534424 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 : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:44:03.087058
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/42/image_06042025_21_42_01_5278.jpg', 2), ('/home/pi/Desktop/images/06042025/21/41/image_06042025_21_41_01_5982.jpg', 2), ('/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', 2), ('/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', 2), ('/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', 2), ('/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/42/image_06042025_21_42_01_5278.jpg', '/home/pi/Desktop/images/06042025/21/41/image_06042025_21_41_01_5982.jpg', '/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg', '/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg', '/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg', '/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/42/image_06042025_21_42_01_5278.jpg
/home/pi/Desktop/images/06042025/21/41/image_06042025_21_41_01_5982.jpg
/home/pi/Desktop/images/06042025/09/19/image_06042025_09_19_01_4506.jpg
/home/pi/Desktop/images/06042025/09/17/image_06042025_09_17_02_1742.jpg
/home/pi/Desktop/images/06042025/09/16/image_06042025_09_16_02_1533.jpg
/home/pi/Desktop/images/06042025/09/15/image_06042025_09_15_01_9839.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190215","1350190223","1350190247","1350190220","1350190237","1350190228"],"photo_ids_order":["1350190215","1350190220","1350190223","1350190228","1350190237","1350190247"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c90b3f23dde0460fec085bd6aaa4beeb.jpg","text":"TemporaryFile(/tmp/multipartBody1930801183790374722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968706095,"filename":"image_06042025_21_42_01_5278.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/29c0f48f7f4bb9a8694746468f3beefe.jpg","text":"TemporaryFile(/tmp/multipartBody2729282304606008868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968706095,"filename":"image_06042025_09_19_01_4506.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/825173ae06faefe0afd7925ab3a43003.jpg","text":"TemporaryFile(/tmp/multipartBody2329898896450269092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968706095,"filename":"image_06042025_09_15_01_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/cb91defd7ca953863821a765903092b1.jpg","text":"TemporaryFile(/tmp/multipartBody1766307335186063031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968706095,"filename":"image_06042025_21_41_01_5982.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/86aadbfbd66af2edb7e56f969866014e.jpg","text":"TemporaryFile(/tmp/multipartBody180912506770420379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968706095,"filename":"image_06042025_09_16_02_1533.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0ec6a2526712050187258da29cd9541c.jpg","text":"TemporaryFile(/tmp/multipartBody8535464148525715962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968706095,"filename":"image_06042025_09_17_02_1742.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190223","file1":"1350190220","file0":"1350190215","file4":"1350190237","file5":"1350190247","file3":"1350190228"},"map_files_photo_id_array":[{"photo_id":"1350190247","filename":"file5"},{"photo_id":"1350190223","filename":"file2"},{"photo_id":"1350190237","filename":"file4"},{"photo_id":"1350190220","filename":"file1"},{"photo_id":"1350190215","filename":"file0"},{"photo_id":"1350190228","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350190215":["hashtag1","hashtag2"]},{"1350190223":["hashtag1","hashtag2"]},{"1350190247":["hashtag1","hashtag2"]},{"1350190220":["hashtag1","hashtag2"]},{"1350190237":["hashtag1","hashtag2"]},{"1350190228":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350190215, 1350190223, 1350190247, 1350190220, 1350190237, 1350190228)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.55829668045044 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:46:02.850481
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/45/image_06042025_21_45_01_7270.jpg', 2), ('/home/pi/Desktop/images/06042025/21/44/image_06042025_21_44_01_6462.jpg', 2), ('/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg', 2), ('/home/pi/Desktop/images/06042025/09/12/image_06042025_09_12_01_4023.jpg', 2), ('/home/pi/Desktop/images/06042025/09/11/image_06042025_09_11_01_4623.jpg', 2), ('/home/pi/Desktop/images/06042025/09/10/image_06042025_09_10_01_6592.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/45/image_06042025_21_45_01_7270.jpg', '/home/pi/Desktop/images/06042025/21/44/image_06042025_21_44_01_6462.jpg', '/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg', '/home/pi/Desktop/images/06042025/09/12/image_06042025_09_12_01_4023.jpg', '/home/pi/Desktop/images/06042025/09/11/image_06042025_09_11_01_4623.jpg', '/home/pi/Desktop/images/06042025/09/10/image_06042025_09_10_01_6592.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/45/image_06042025_21_45_01_7270.jpg
/home/pi/Desktop/images/06042025/21/44/image_06042025_21_44_01_6462.jpg
/home/pi/Desktop/images/06042025/09/13/image_06042025_09_13_01_7468.jpg
/home/pi/Desktop/images/06042025/09/12/image_06042025_09_12_01_4023.jpg
/home/pi/Desktop/images/06042025/09/11/image_06042025_09_11_01_4623.jpg
/home/pi/Desktop/images/06042025/09/10/image_06042025_09_10_01_6592.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190353","1350190335","1350190340","1350190358","1350190346","1350190328"],"photo_ids_order":["1350190328","1350190335","1350190340","1350190346","1350190353","1350190358"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/637e5718bb45457ba02f2bdacdff3f0b.jpg","text":"TemporaryFile(/tmp/multipartBody3472750718936535755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968826601,"filename":"image_06042025_09_11_01_4623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e65738cd10c79d387973112474ebad0.jpg","text":"TemporaryFile(/tmp/multipartBody4211297454771771830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968826601,"filename":"image_06042025_21_44_01_6462.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4931c5bb2b02f625c95a52cf86b4ffff.jpg","text":"TemporaryFile(/tmp/multipartBody1270615076735250293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968826601,"filename":"image_06042025_09_13_01_7468.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ee950b8771890a4b94ff7b2c9469d730.jpg","text":"TemporaryFile(/tmp/multipartBody1339853851779381274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968826601,"filename":"image_06042025_09_10_01_6592.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf173808b5686438b1c95910742d22c9.jpg","text":"TemporaryFile(/tmp/multipartBody8264613363361667252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968826601,"filename":"image_06042025_09_12_01_4023.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c4150474836ba9d40c0e9b2019c5ad8b.jpg","text":"TemporaryFile(/tmp/multipartBody6037636520383839161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968826601,"filename":"image_06042025_21_45_01_7270.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190340","file1":"1350190335","file0":"1350190328","file4":"1350190353","file5":"1350190358","file3":"1350190346"},"map_files_photo_id_array":[{"photo_id":"1350190358","filename":"file5"},{"photo_id":"1350190340","filename":"file2"},{"photo_id":"1350190353","filename":"file4"},{"photo_id":"1350190335","filename":"file1"},{"photo_id":"1350190328","filename":"file0"},{"photo_id":"1350190346","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350190353":["hashtag1","hashtag2"]},{"1350190335":["hashtag1","hashtag2"]},{"1350190340":["hashtag1","hashtag2"]},{"1350190358":["hashtag1","hashtag2"]},{"1350190346":["hashtag1","hashtag2"]},{"1350190328":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350190353, 1350190335, 1350190340, 1350190358, 1350190346, 1350190328)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.46973705291748 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:47:03.689824
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/09/09/image_06042025_09_09_01_5657.jpg', 2), ('/home/pi/Desktop/images/06042025/09/08/image_06042025_09_08_01_7295.jpg', 2), ('/home/pi/Desktop/images/06042025/09/07/image_06042025_09_07_01_4056.jpg', 2), ('/home/pi/Desktop/images/06042025/09/06/image_06042025_09_06_02_0635.jpg', 2), ('/home/pi/Desktop/images/06042025/09/05/image_06042025_09_05_02_0653.jpg', 2), ('/home/pi/Desktop/images/06042025/09/00/image_06042025_09_00_01_9224.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/09/09/image_06042025_09_09_01_5657.jpg', '/home/pi/Desktop/images/06042025/09/08/image_06042025_09_08_01_7295.jpg', '/home/pi/Desktop/images/06042025/09/07/image_06042025_09_07_01_4056.jpg', '/home/pi/Desktop/images/06042025/09/06/image_06042025_09_06_02_0635.jpg', '/home/pi/Desktop/images/06042025/09/05/image_06042025_09_05_02_0653.jpg', '/home/pi/Desktop/images/06042025/09/00/image_06042025_09_00_01_9224.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/09/09/image_06042025_09_09_01_5657.jpg
/home/pi/Desktop/images/06042025/09/08/image_06042025_09_08_01_7295.jpg
/home/pi/Desktop/images/06042025/09/07/image_06042025_09_07_01_4056.jpg
/home/pi/Desktop/images/06042025/09/06/image_06042025_09_06_02_0635.jpg
/home/pi/Desktop/images/06042025/09/05/image_06042025_09_05_02_0653.jpg
/home/pi/Desktop/images/06042025/09/00/image_06042025_09_00_01_9224.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190388","1350190396","1350190372","1350190375","1350190369","1350190380"],"photo_ids_order":["1350190369","1350190372","1350190375","1350190380","1350190388","1350190396"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c3f0efd76191115f701fad9190b49518.jpg","text":"TemporaryFile(/tmp/multipartBody416688624172003482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968888100,"filename":"image_06042025_09_05_02_0653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ad11736d4ec8d5ff449da3ad755d76e2.jpg","text":"TemporaryFile(/tmp/multipartBody3765618086361985365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968888100,"filename":"image_06042025_09_00_01_9224.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8ca62e98ed060cc5d4ae3d8dda3ef02.jpg","text":"TemporaryFile(/tmp/multipartBody6549778006969281548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968888100,"filename":"image_06042025_09_08_01_7295.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a455689d45949373df0c01c42189db14.jpg","text":"TemporaryFile(/tmp/multipartBody4190428872133278934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968888100,"filename":"image_06042025_09_07_01_4056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ce1df1f5d0ab4ae5573341e35fcc7115.jpg","text":"TemporaryFile(/tmp/multipartBody2025447323375114562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968888100,"filename":"image_06042025_09_09_01_5657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff4f55c61a917db3234868aff286b885.jpg","text":"TemporaryFile(/tmp/multipartBody7738026927570510944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968888100,"filename":"image_06042025_09_06_02_0635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190375","file1":"1350190372","file0":"1350190369","file4":"1350190388","file5":"1350190396","file3":"1350190380"},"map_files_photo_id_array":[{"photo_id":"1350190396","filename":"file5"},{"photo_id":"1350190375","filename":"file2"},{"photo_id":"1350190388","filename":"file4"},{"photo_id":"1350190372","filename":"file1"},{"photo_id":"1350190369","filename":"file0"},{"photo_id":"1350190380","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350190388":["hashtag1","hashtag2"]},{"1350190396":["hashtag1","hashtag2"]},{"1350190372":["hashtag1","hashtag2"]},{"1350190375":["hashtag1","hashtag2"]},{"1350190369":["hashtag1","hashtag2"]},{"1350190380":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350190388, 1350190396, 1350190372, 1350190375, 1350190369, 1350190380)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.82026386260986 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:49:03.688300
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/08/59/image_06042025_08_59_01_9171.jpg', 2), ('/home/pi/Desktop/images/06042025/08/58/image_06042025_08_58_01_7513.jpg', 2), ('/home/pi/Desktop/images/06042025/08/57/image_06042025_08_57_01_7910.jpg', 2), ('/home/pi/Desktop/images/06042025/08/52/image_06042025_08_52_01_6281.jpg', 2), ('/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg', 2), ('/home/pi/Desktop/images/06042025/08/50/image_06042025_08_50_02_1589.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/08/59/image_06042025_08_59_01_9171.jpg', '/home/pi/Desktop/images/06042025/08/58/image_06042025_08_58_01_7513.jpg', '/home/pi/Desktop/images/06042025/08/57/image_06042025_08_57_01_7910.jpg', '/home/pi/Desktop/images/06042025/08/52/image_06042025_08_52_01_6281.jpg', '/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg', '/home/pi/Desktop/images/06042025/08/50/image_06042025_08_50_02_1589.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/08/59/image_06042025_08_59_01_9171.jpg
/home/pi/Desktop/images/06042025/08/58/image_06042025_08_58_01_7513.jpg
/home/pi/Desktop/images/06042025/08/57/image_06042025_08_57_01_7910.jpg
/home/pi/Desktop/images/06042025/08/52/image_06042025_08_52_01_6281.jpg
/home/pi/Desktop/images/06042025/08/51/image_06042025_08_51_01_2941.jpg
/home/pi/Desktop/images/06042025/08/50/image_06042025_08_50_02_1589.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190487","1350190550","1350190517","1350190604","1350190558","1350190494"],"photo_ids_order":["1350190487","1350190494","1350190517","1350190550","1350190558","1350190604"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7edc3e23c3cfebb3df1b46b72b1db436.jpg","text":"TemporaryFile(/tmp/multipartBody7384132672642773974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969008158,"filename":"image_06042025_08_59_01_9171.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a799fbd360732ecd2d139642737c352c.jpg","text":"TemporaryFile(/tmp/multipartBody5518751622169653840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969008158,"filename":"image_06042025_08_52_01_6281.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25da25808e106f9087840f0cce13636c.jpg","text":"TemporaryFile(/tmp/multipartBody3599339789383394445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969008158,"filename":"image_06042025_08_57_01_7910.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8e3b6c0d2461a002ba7218bf7a1b569f.jpg","text":"TemporaryFile(/tmp/multipartBody2038297815396824126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969008158,"filename":"image_06042025_08_50_02_1589.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bb68b83e6ff072e0fa1538b6d161ff63.jpg","text":"TemporaryFile(/tmp/multipartBody7890646529621768474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969008158,"filename":"image_06042025_08_51_01_2941.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/22af1641f30221a9be8e34088ecf5f27.jpg","text":"TemporaryFile(/tmp/multipartBody4104314125127061203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969008158,"filename":"image_06042025_08_58_01_7513.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190517","file1":"1350190494","file0":"1350190487","file4":"1350190558","file5":"1350190604","file3":"1350190550"},"map_files_photo_id_array":[{"photo_id":"1350190604","filename":"file5"},{"photo_id":"1350190517","filename":"file2"},{"photo_id":"1350190558","filename":"file4"},{"photo_id":"1350190494","filename":"file1"},{"photo_id":"1350190487","filename":"file0"},{"photo_id":"1350190550","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350190487":["hashtag1","hashtag2"]},{"1350190550":["hashtag1","hashtag2"]},{"1350190517":["hashtag1","hashtag2"]},{"1350190604":["hashtag1","hashtag2"]},{"1350190558":["hashtag1","hashtag2"]},{"1350190494":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350190487, 1350190550, 1350190517, 1350190604, 1350190558, 1350190494)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.02800107002258 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:51:03.768607
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/08/49/image_06042025_08_49_02_0045.jpg', 2), ('/home/pi/Desktop/images/06042025/08/48/image_06042025_08_48_02_0463.jpg', 2), ('/home/pi/Desktop/images/06042025/08/46/image_06042025_08_46_01_8288.jpg', 2), ('/home/pi/Desktop/images/06042025/08/45/image_06042025_08_45_01_6452.jpg', 2), ('/home/pi/Desktop/images/06042025/08/43/image_06042025_08_43_01_4323.jpg', 2), ('/home/pi/Desktop/images/06042025/08/42/image_06042025_08_42_01_5007.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/08/49/image_06042025_08_49_02_0045.jpg', '/home/pi/Desktop/images/06042025/08/48/image_06042025_08_48_02_0463.jpg', '/home/pi/Desktop/images/06042025/08/46/image_06042025_08_46_01_8288.jpg', '/home/pi/Desktop/images/06042025/08/45/image_06042025_08_45_01_6452.jpg', '/home/pi/Desktop/images/06042025/08/43/image_06042025_08_43_01_4323.jpg', '/home/pi/Desktop/images/06042025/08/42/image_06042025_08_42_01_5007.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/08/49/image_06042025_08_49_02_0045.jpg
/home/pi/Desktop/images/06042025/08/48/image_06042025_08_48_02_0463.jpg
/home/pi/Desktop/images/06042025/08/46/image_06042025_08_46_01_8288.jpg
/home/pi/Desktop/images/06042025/08/45/image_06042025_08_45_01_6452.jpg
/home/pi/Desktop/images/06042025/08/43/image_06042025_08_43_01_4323.jpg
/home/pi/Desktop/images/06042025/08/42/image_06042025_08_42_01_5007.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190818","1350190790","1350190778","1350190804","1350190854","1350190848"],"photo_ids_order":["1350190778","1350190790","1350190804","1350190818","1350190848","1350190854"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/53aca1942f698ce20f402f6a84bd301b.jpg","text":"TemporaryFile(/tmp/multipartBody1771606221255898837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969128315,"filename":"image_06042025_08_45_01_6452.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3007f4d787aa3b5b37bb8bb7960f38b3.jpg","text":"TemporaryFile(/tmp/multipartBody5417334746004993290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969128315,"filename":"image_06042025_08_48_02_0463.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3bff63298ddd915f8bcfd967443a2ae2.jpg","text":"TemporaryFile(/tmp/multipartBody3782525771084939790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969128315,"filename":"image_06042025_08_49_02_0045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/916764cdc4e0b016ed58ce3255cb8b40.jpg","text":"TemporaryFile(/tmp/multipartBody6688761113185744093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969128315,"filename":"image_06042025_08_46_01_8288.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/73adf3e92cbdc9a889b19d83df617ba5.jpg","text":"TemporaryFile(/tmp/multipartBody6375193805504968114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969128315,"filename":"image_06042025_08_42_01_5007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fd5bda2b8b51f7c4bf922e353412adec.jpg","text":"TemporaryFile(/tmp/multipartBody9114542486736037026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969128315,"filename":"image_06042025_08_43_01_4323.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190804","file1":"1350190790","file0":"1350190778","file4":"1350190848","file5":"1350190854","file3":"1350190818"},"map_files_photo_id_array":[{"photo_id":"1350190854","filename":"file5"},{"photo_id":"1350190804","filename":"file2"},{"photo_id":"1350190848","filename":"file4"},{"photo_id":"1350190790","filename":"file1"},{"photo_id":"1350190778","filename":"file0"},{"photo_id":"1350190818","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350190818":["hashtag1","hashtag2"]},{"1350190790":["hashtag1","hashtag2"]},{"1350190778":["hashtag1","hashtag2"]},{"1350190804":["hashtag1","hashtag2"]},{"1350190854":["hashtag1","hashtag2"]},{"1350190848":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350190818, 1350190790, 1350190778, 1350190804, 1350190854, 1350190848)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.3684937953949 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:53:03.846130
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/53/image_06042025_21_53_01_8384.jpg', 2), ('/home/pi/Desktop/images/06042025/21/46/image_06042025_21_46_01_9654.jpg', 2), ('/home/pi/Desktop/images/06042025/08/41/image_06042025_08_41_01_3770.jpg', 2), ('/home/pi/Desktop/images/06042025/08/40/image_06042025_08_40_02_0936.jpg', 2), ('/home/pi/Desktop/images/06042025/08/37/image_06042025_08_37_01_6615.jpg', 2), ('/home/pi/Desktop/images/06042025/08/36/image_06042025_08_36_01_2660.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/53/image_06042025_21_53_01_8384.jpg', '/home/pi/Desktop/images/06042025/21/46/image_06042025_21_46_01_9654.jpg', '/home/pi/Desktop/images/06042025/08/41/image_06042025_08_41_01_3770.jpg', '/home/pi/Desktop/images/06042025/08/40/image_06042025_08_40_02_0936.jpg', '/home/pi/Desktop/images/06042025/08/37/image_06042025_08_37_01_6615.jpg', '/home/pi/Desktop/images/06042025/08/36/image_06042025_08_36_01_2660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/53/image_06042025_21_53_01_8384.jpg
/home/pi/Desktop/images/06042025/21/46/image_06042025_21_46_01_9654.jpg
/home/pi/Desktop/images/06042025/08/41/image_06042025_08_41_01_3770.jpg
/home/pi/Desktop/images/06042025/08/40/image_06042025_08_40_02_0936.jpg
/home/pi/Desktop/images/06042025/08/37/image_06042025_08_37_01_6615.jpg
/home/pi/Desktop/images/06042025/08/36/image_06042025_08_36_01_2660.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190938","1350190943","1350190949","1350190934","1350190957","1350190930"],"photo_ids_order":["1350190930","1350190934","1350190938","1350190943","1350190949","1350190957"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/21ebdfecc7de2ddb0edd64a513e11e92.jpg","text":"TemporaryFile(/tmp/multipartBody2478346710863031122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969247841,"filename":"image_06042025_08_41_01_3770.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/653d3e12dc5aff4fe809356e091b2242.jpg","text":"TemporaryFile(/tmp/multipartBody4188734133425523097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969247841,"filename":"image_06042025_08_40_02_0936.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/87f31e32e1432e726636d6fa0265dfbf.jpg","text":"TemporaryFile(/tmp/multipartBody4064857627820358107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969247841,"filename":"image_06042025_08_37_01_6615.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ca945a855836ae30c597457ab5c3026d.jpg","text":"TemporaryFile(/tmp/multipartBody7441942647982111008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969247841,"filename":"image_06042025_21_46_01_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/4a74c9873265e8bac11f9d25a7371b12.jpg","text":"TemporaryFile(/tmp/multipartBody5222239028370836324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969247841,"filename":"image_06042025_08_36_01_2660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e31f1f023817358b4f210354d93053b5.jpg","text":"TemporaryFile(/tmp/multipartBody2014566675215557038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969247841,"filename":"image_06042025_21_53_01_8384.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190938","file1":"1350190934","file0":"1350190930","file4":"1350190949","file5":"1350190957","file3":"1350190943"},"map_files_photo_id_array":[{"photo_id":"1350190957","filename":"file5"},{"photo_id":"1350190938","filename":"file2"},{"photo_id":"1350190949","filename":"file4"},{"photo_id":"1350190934","filename":"file1"},{"photo_id":"1350190930","filename":"file0"},{"photo_id":"1350190943","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350190938":["hashtag1","hashtag2"]},{"1350190943":["hashtag1","hashtag2"]},{"1350190949":["hashtag1","hashtag2"]},{"1350190934":["hashtag1","hashtag2"]},{"1350190957":["hashtag1","hashtag2"]},{"1350190930":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350190938, 1350190943, 1350190949, 1350190934, 1350190957, 1350190930)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.58704972267151 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:55:03.992281
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/54/image_06042025_21_54_02_0112.jpg', 2), ('/home/pi/Desktop/images/06042025/21/52/image_06042025_21_52_01_9257.jpg', 2), ('/home/pi/Desktop/images/06042025/08/34/image_06042025_08_34_01_4780.jpg', 2), ('/home/pi/Desktop/images/06042025/08/32/image_06042025_08_32_01_3519.jpg', 2), ('/home/pi/Desktop/images/06042025/08/30/image_06042025_08_30_01_8783.jpg', 2), ('/home/pi/Desktop/images/06042025/08/26/image_06042025_08_26_01_3776.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/54/image_06042025_21_54_02_0112.jpg', '/home/pi/Desktop/images/06042025/21/52/image_06042025_21_52_01_9257.jpg', '/home/pi/Desktop/images/06042025/08/34/image_06042025_08_34_01_4780.jpg', '/home/pi/Desktop/images/06042025/08/32/image_06042025_08_32_01_3519.jpg', '/home/pi/Desktop/images/06042025/08/30/image_06042025_08_30_01_8783.jpg', '/home/pi/Desktop/images/06042025/08/26/image_06042025_08_26_01_3776.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/54/image_06042025_21_54_02_0112.jpg
/home/pi/Desktop/images/06042025/21/52/image_06042025_21_52_01_9257.jpg
/home/pi/Desktop/images/06042025/08/34/image_06042025_08_34_01_4780.jpg
/home/pi/Desktop/images/06042025/08/32/image_06042025_08_32_01_3519.jpg
/home/pi/Desktop/images/06042025/08/30/image_06042025_08_30_01_8783.jpg
/home/pi/Desktop/images/06042025/08/26/image_06042025_08_26_01_3776.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190991","1350190993","1350191023","1350191017","1350191008","1350190998"],"photo_ids_order":["1350190991","1350190993","1350190998","1350191008","1350191017","1350191023"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c3a2044dab8ec05331d534411e573c04.jpg","text":"TemporaryFile(/tmp/multipartBody6938333655103332914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969367991,"filename":"image_06042025_21_54_02_0112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c9068c96aeecd14f468c2aebb5051eb.jpg","text":"TemporaryFile(/tmp/multipartBody8829146836582019183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969367991,"filename":"image_06042025_21_52_01_9257.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9606f2ce73d88609efe383426c61daf6.jpg","text":"TemporaryFile(/tmp/multipartBody1941698200039080707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969367991,"filename":"image_06042025_08_26_01_3776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b1e8af5888ff348e799086d60ee7971f.jpg","text":"TemporaryFile(/tmp/multipartBody3069959313966608348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969367991,"filename":"image_06042025_08_30_01_8783.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4629dad39356661200cdcc444fd689dd.jpg","text":"TemporaryFile(/tmp/multipartBody6889671372900180091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969367991,"filename":"image_06042025_08_32_01_3519.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/57223f6905b3917cd6e422b6e1d3a2d6.jpg","text":"TemporaryFile(/tmp/multipartBody5124484070830945508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969367991,"filename":"image_06042025_08_34_01_4780.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190998","file1":"1350190993","file0":"1350190991","file4":"1350191017","file5":"1350191023","file3":"1350191008"},"map_files_photo_id_array":[{"photo_id":"1350191023","filename":"file5"},{"photo_id":"1350190998","filename":"file2"},{"photo_id":"1350191017","filename":"file4"},{"photo_id":"1350190993","filename":"file1"},{"photo_id":"1350190991","filename":"file0"},{"photo_id":"1350191008","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350190991":["hashtag1","hashtag2"]},{"1350190993":["hashtag1","hashtag2"]},{"1350191023":["hashtag1","hashtag2"]},{"1350191017":["hashtag1","hashtag2"]},{"1350191008":["hashtag1","hashtag2"]},{"1350190998":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350190991, 1350190993, 1350191023, 1350191017, 1350191008, 1350190998)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.64613509178162 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:57:03.242891
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/55/image_06042025_21_55_02_0873.jpg', 2), ('/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', 2), ('/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', 2), ('/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', 2), ('/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', 2), ('/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/55/image_06042025_21_55_02_0873.jpg', '/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', '/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', '/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', '/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', '/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/55/image_06042025_21_55_02_0873.jpg
/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg
/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg
/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg
/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg
/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 21:59:03.680424
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/21/58/image_06042025_21_58_01_3786.jpg', 2), ('/home/pi/Desktop/images/06042025/21/57/image_06042025_21_57_01_2248.jpg', 2), ('/home/pi/Desktop/images/06042025/21/56/image_06042025_21_56_02_1180.jpg', 2), ('/home/pi/Desktop/images/06042025/21/55/image_06042025_21_55_02_0873.jpg', 2), ('/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', 2), ('/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/21/58/image_06042025_21_58_01_3786.jpg', '/home/pi/Desktop/images/06042025/21/57/image_06042025_21_57_01_2248.jpg', '/home/pi/Desktop/images/06042025/21/56/image_06042025_21_56_02_1180.jpg', '/home/pi/Desktop/images/06042025/21/55/image_06042025_21_55_02_0873.jpg', '/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg', '/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/21/58/image_06042025_21_58_01_3786.jpg
/home/pi/Desktop/images/06042025/21/57/image_06042025_21_57_01_2248.jpg
/home/pi/Desktop/images/06042025/21/56/image_06042025_21_56_02_1180.jpg
/home/pi/Desktop/images/06042025/21/55/image_06042025_21_55_02_0873.jpg
/home/pi/Desktop/images/06042025/08/22/image_06042025_08_22_01_9794.jpg
/home/pi/Desktop/images/06042025/08/21/image_06042025_08_21_01_6637.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191210","1350191201","1350191212","1350191190","1350191223","1350191214"],"photo_ids_order":["1350191190","1350191201","1350191210","1350191212","1350191214","1350191223"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/61c52a0fbd7b3428a68ff73f4eba1ec4.jpg","text":"TemporaryFile(/tmp/multipartBody5449721721746317341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969606813,"filename":"image_06042025_21_56_02_1180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bb61bf89f220d6a0b70674620b8f27f5.jpg","text":"TemporaryFile(/tmp/multipartBody7740943553162301788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969606813,"filename":"image_06042025_21_57_01_2248.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a4a27d686b93575d98748367ccf5ae18.jpg","text":"TemporaryFile(/tmp/multipartBody4992034321511554368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969606813,"filename":"image_06042025_21_55_02_0873.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7b97d504fc501a82155fe60af6d1c025.jpg","text":"TemporaryFile(/tmp/multipartBody266199000728603793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969606813,"filename":"image_06042025_21_58_01_3786.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fdc6cadc1ce7ccbc30015d69a2f7b391.jpg","text":"TemporaryFile(/tmp/multipartBody2429518959743380154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969606813,"filename":"image_06042025_08_21_01_6637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bfe3ea938aab7bc226bada50b6f85dfb.jpg","text":"TemporaryFile(/tmp/multipartBody6162988469337186234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969606813,"filename":"image_06042025_08_22_01_9794.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191210","file1":"1350191201","file0":"1350191190","file4":"1350191214","file5":"1350191223","file3":"1350191212"},"map_files_photo_id_array":[{"photo_id":"1350191223","filename":"file5"},{"photo_id":"1350191210","filename":"file2"},{"photo_id":"1350191214","filename":"file4"},{"photo_id":"1350191201","filename":"file1"},{"photo_id":"1350191190","filename":"file0"},{"photo_id":"1350191212","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350191210":["hashtag1","hashtag2"]},{"1350191201":["hashtag1","hashtag2"]},{"1350191212":["hashtag1","hashtag2"]},{"1350191190":["hashtag1","hashtag2"]},{"1350191223":["hashtag1","hashtag2"]},{"1350191214":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350191210, 1350191201, 1350191212, 1350191190, 1350191223, 1350191214)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.86095809936523 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:01:03.259743
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/00/image_06042025_22_00_01_8655.jpg', 2), ('/home/pi/Desktop/images/06042025/21/59/image_06042025_21_59_01_8364.jpg', 2), ('/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', 2), ('/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', 2), ('/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg', 2), ('/home/pi/Desktop/images/06042025/08/14/image_06042025_08_14_01_5694.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/00/image_06042025_22_00_01_8655.jpg', '/home/pi/Desktop/images/06042025/21/59/image_06042025_21_59_01_8364.jpg', '/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg', '/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg', '/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg', '/home/pi/Desktop/images/06042025/08/14/image_06042025_08_14_01_5694.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/00/image_06042025_22_00_01_8655.jpg
/home/pi/Desktop/images/06042025/21/59/image_06042025_21_59_01_8364.jpg
/home/pi/Desktop/images/06042025/08/20/image_06042025_08_20_01_3243.jpg
/home/pi/Desktop/images/06042025/08/19/image_06042025_08_19_01_2782.jpg
/home/pi/Desktop/images/06042025/08/17/image_06042025_08_17_01_2142.jpg
/home/pi/Desktop/images/06042025/08/14/image_06042025_08_14_01_5694.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191276","1350191324","1350191332","1350191298","1350191317","1350191283"],"photo_ids_order":["1350191276","1350191283","1350191298","1350191317","1350191324","1350191332"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d34814cd3a3a2f4b04cd187616224af6.jpg","text":"TemporaryFile(/tmp/multipartBody5593222230529850041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969726686,"filename":"image_06042025_22_00_01_8655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/769c54821bdff9998b5905333d30dce9.jpg","text":"TemporaryFile(/tmp/multipartBody8366883828009578129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969726686,"filename":"image_06042025_08_17_01_2142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4aa194d4283b569c8f705f2650df78ef.jpg","text":"TemporaryFile(/tmp/multipartBody6842384733136824165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969726686,"filename":"image_06042025_08_14_01_5694.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bd5d9ee79a131fed8f2902ac8c1b94c9.jpg","text":"TemporaryFile(/tmp/multipartBody7177828896669857810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969726686,"filename":"image_06042025_08_20_01_3243.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/20eddc5eaa2d6dcb7ae6a0fdc90ca035.jpg","text":"TemporaryFile(/tmp/multipartBody8770494031028627302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969726686,"filename":"image_06042025_08_19_01_2782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c7d9f3dae5bad1c675cad41aa072b76d.jpg","text":"TemporaryFile(/tmp/multipartBody8544489277340936272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969726686,"filename":"image_06042025_21_59_01_8364.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191298","file1":"1350191283","file0":"1350191276","file4":"1350191324","file5":"1350191332","file3":"1350191317"},"map_files_photo_id_array":[{"photo_id":"1350191332","filename":"file5"},{"photo_id":"1350191298","filename":"file2"},{"photo_id":"1350191324","filename":"file4"},{"photo_id":"1350191283","filename":"file1"},{"photo_id":"1350191276","filename":"file0"},{"photo_id":"1350191317","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350191276":["hashtag1","hashtag2"]},{"1350191324":["hashtag1","hashtag2"]},{"1350191332":["hashtag1","hashtag2"]},{"1350191298":["hashtag1","hashtag2"]},{"1350191317":["hashtag1","hashtag2"]},{"1350191283":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350191276, 1350191324, 1350191332, 1350191298, 1350191317, 1350191283)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.93063735961914 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:03:03.089322
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/02/image_06042025_22_02_01_5419.jpg', 2), ('/home/pi/Desktop/images/06042025/22/01/image_06042025_22_01_01_5305.jpg', 2), ('/home/pi/Desktop/images/06042025/08/12/image_06042025_08_12_01_9989.jpg', 2), ('/home/pi/Desktop/images/06042025/08/10/image_06042025_08_10_01_8383.jpg', 2), ('/home/pi/Desktop/images/06042025/08/09/image_06042025_08_09_01_7450.jpg', 2), ('/home/pi/Desktop/images/06042025/08/08/image_06042025_08_08_01_3862.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/02/image_06042025_22_02_01_5419.jpg', '/home/pi/Desktop/images/06042025/22/01/image_06042025_22_01_01_5305.jpg', '/home/pi/Desktop/images/06042025/08/12/image_06042025_08_12_01_9989.jpg', '/home/pi/Desktop/images/06042025/08/10/image_06042025_08_10_01_8383.jpg', '/home/pi/Desktop/images/06042025/08/09/image_06042025_08_09_01_7450.jpg', '/home/pi/Desktop/images/06042025/08/08/image_06042025_08_08_01_3862.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/02/image_06042025_22_02_01_5419.jpg
/home/pi/Desktop/images/06042025/22/01/image_06042025_22_01_01_5305.jpg
/home/pi/Desktop/images/06042025/08/12/image_06042025_08_12_01_9989.jpg
/home/pi/Desktop/images/06042025/08/10/image_06042025_08_10_01_8383.jpg
/home/pi/Desktop/images/06042025/08/09/image_06042025_08_09_01_7450.jpg
/home/pi/Desktop/images/06042025/08/08/image_06042025_08_08_01_3862.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191822","1350191846","1350192055","1350192022","1350192060","1350192063"],"photo_ids_order":["1350191822","1350191846","1350192022","1350192055","1350192060","1350192063"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/639deb3978e872069d80417ad2559fe3.jpg","text":"TemporaryFile(/tmp/multipartBody9095569461671636209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969847164,"filename":"image_06042025_22_02_01_5419.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0b04cb71be201b0c30213c317af40bdd.jpg","text":"TemporaryFile(/tmp/multipartBody3568447612274023065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969847164,"filename":"image_06042025_22_01_01_5305.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9e66da1f6ca11dc61818d17f16c91579.jpg","text":"TemporaryFile(/tmp/multipartBody6387866907306417213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969847164,"filename":"image_06042025_08_10_01_8383.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/85fb36aff731a148254d986b9a3398ec.jpg","text":"TemporaryFile(/tmp/multipartBody2099717470009517850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969847164,"filename":"image_06042025_08_12_01_9989.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/489feb6e7e250889c81608757164bfef.jpg","text":"TemporaryFile(/tmp/multipartBody5845900788397716817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969847164,"filename":"image_06042025_08_09_01_7450.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/89d8896aefc3374282495df1fa1bfdf5.jpg","text":"TemporaryFile(/tmp/multipartBody3189941776204195479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969847164,"filename":"image_06042025_08_08_01_3862.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192022","file1":"1350191846","file0":"1350191822","file4":"1350192060","file5":"1350192063","file3":"1350192055"},"map_files_photo_id_array":[{"photo_id":"1350192063","filename":"file5"},{"photo_id":"1350192022","filename":"file2"},{"photo_id":"1350192060","filename":"file4"},{"photo_id":"1350191846","filename":"file1"},{"photo_id":"1350191822","filename":"file0"},{"photo_id":"1350192055","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350191822":["hashtag1","hashtag2"]},{"1350191846":["hashtag1","hashtag2"]},{"1350192055":["hashtag1","hashtag2"]},{"1350192022":["hashtag1","hashtag2"]},{"1350192060":["hashtag1","hashtag2"]},{"1350192063":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350191822, 1350191846, 1350192055, 1350192022, 1350192060, 1350192063)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 84.53495073318481 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:05:03.243516
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/03/image_06042025_22_03_01_2033.jpg', 2), ('/home/pi/Desktop/images/06042025/08/07/image_06042025_08_07_01_4715.jpg', 2), ('/home/pi/Desktop/images/06042025/08/05/image_06042025_08_05_01_2932.jpg', 2), ('/home/pi/Desktop/images/06042025/08/03/image_06042025_08_03_01_8442.jpg', 2), ('/home/pi/Desktop/images/06042025/08/02/image_06042025_08_02_01_6641.jpg', 2), ('/home/pi/Desktop/images/06042025/08/01/image_06042025_08_01_01_4033.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/03/image_06042025_22_03_01_2033.jpg', '/home/pi/Desktop/images/06042025/08/07/image_06042025_08_07_01_4715.jpg', '/home/pi/Desktop/images/06042025/08/05/image_06042025_08_05_01_2932.jpg', '/home/pi/Desktop/images/06042025/08/03/image_06042025_08_03_01_8442.jpg', '/home/pi/Desktop/images/06042025/08/02/image_06042025_08_02_01_6641.jpg', '/home/pi/Desktop/images/06042025/08/01/image_06042025_08_01_01_4033.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/03/image_06042025_22_03_01_2033.jpg
/home/pi/Desktop/images/06042025/08/07/image_06042025_08_07_01_4715.jpg
/home/pi/Desktop/images/06042025/08/05/image_06042025_08_05_01_2932.jpg
/home/pi/Desktop/images/06042025/08/03/image_06042025_08_03_01_8442.jpg
/home/pi/Desktop/images/06042025/08/02/image_06042025_08_02_01_6641.jpg
/home/pi/Desktop/images/06042025/08/01/image_06042025_08_01_01_4033.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192149","1350192134","1350192157","1350192099","1350192123","1350192158"],"photo_ids_order":["1350192099","1350192123","1350192134","1350192149","1350192157","1350192158"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fc02211cbd256c7f1aa3c34ac00c85cb.jpg","text":"TemporaryFile(/tmp/multipartBody7651781755509313760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969967635,"filename":"image_06042025_08_03_01_8442.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d88a7079afc3b07f59cdb0d1a09f6713.jpg","text":"TemporaryFile(/tmp/multipartBody899688916167890487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969967635,"filename":"image_06042025_08_05_01_2932.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a441aad8c75fa05a844c3aeb561b3a47.jpg","text":"TemporaryFile(/tmp/multipartBody4155061707082641996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969967635,"filename":"image_06042025_08_02_01_6641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/89170418b727748413fbf3a56897f3ab.jpg","text":"TemporaryFile(/tmp/multipartBody5256307589204279123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969967635,"filename":"image_06042025_22_03_01_2033.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/096411ad2988bdbe1202ae5ff51e84d4.jpg","text":"TemporaryFile(/tmp/multipartBody1968712642195246308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969967635,"filename":"image_06042025_08_07_01_4715.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/90bef52ce717067cc5f20b86b6c25eef.jpg","text":"TemporaryFile(/tmp/multipartBody2432000523263822317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969967635,"filename":"image_06042025_08_01_01_4033.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192134","file1":"1350192123","file0":"1350192099","file4":"1350192157","file5":"1350192158","file3":"1350192149"},"map_files_photo_id_array":[{"photo_id":"1350192158","filename":"file5"},{"photo_id":"1350192134","filename":"file2"},{"photo_id":"1350192157","filename":"file4"},{"photo_id":"1350192123","filename":"file1"},{"photo_id":"1350192099","filename":"file0"},{"photo_id":"1350192149","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350192149":["hashtag1","hashtag2"]},{"1350192134":["hashtag1","hashtag2"]},{"1350192157":["hashtag1","hashtag2"]},{"1350192099":["hashtag1","hashtag2"]},{"1350192123":["hashtag1","hashtag2"]},{"1350192158":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350192149, 1350192134, 1350192157, 1350192099, 1350192123, 1350192158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.28941059112549 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:07:03.344862
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/07/59/image_06042025_07_59_02_0529.jpg', 2), ('/home/pi/Desktop/images/06042025/07/58/image_06042025_07_58_01_8643.jpg', 2), ('/home/pi/Desktop/images/06042025/07/57/image_06042025_07_57_01_6772.jpg', 2), ('/home/pi/Desktop/images/06042025/07/56/image_06042025_07_56_01_4460.jpg', 2), ('/home/pi/Desktop/images/06042025/07/55/image_06042025_07_55_01_5872.jpg', 2), ('/home/pi/Desktop/images/06042025/07/54/image_06042025_07_54_02_2231.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/07/59/image_06042025_07_59_02_0529.jpg', '/home/pi/Desktop/images/06042025/07/58/image_06042025_07_58_01_8643.jpg', '/home/pi/Desktop/images/06042025/07/57/image_06042025_07_57_01_6772.jpg', '/home/pi/Desktop/images/06042025/07/56/image_06042025_07_56_01_4460.jpg', '/home/pi/Desktop/images/06042025/07/55/image_06042025_07_55_01_5872.jpg', '/home/pi/Desktop/images/06042025/07/54/image_06042025_07_54_02_2231.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/07/59/image_06042025_07_59_02_0529.jpg
/home/pi/Desktop/images/06042025/07/58/image_06042025_07_58_01_8643.jpg
/home/pi/Desktop/images/06042025/07/57/image_06042025_07_57_01_6772.jpg
/home/pi/Desktop/images/06042025/07/56/image_06042025_07_56_01_4460.jpg
/home/pi/Desktop/images/06042025/07/55/image_06042025_07_55_01_5872.jpg
/home/pi/Desktop/images/06042025/07/54/image_06042025_07_54_02_2231.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192308","1350192292","1350192305","1350192277","1350192282","1350192300"],"photo_ids_order":["1350192277","1350192282","1350192292","1350192300","1350192305","1350192308"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/632dae672c709aa3f1a3a3f1876d98d9.jpg","text":"TemporaryFile(/tmp/multipartBody5533968977581699186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970087768,"filename":"image_06042025_07_54_02_2231.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/65c01bf35f42ce41130b3161396ef25f.jpg","text":"TemporaryFile(/tmp/multipartBody7399049133639751917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970087768,"filename":"image_06042025_07_57_01_6772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f79a48dee444eda131f6f40b191bd21b.jpg","text":"TemporaryFile(/tmp/multipartBody2896632616133368727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970087768,"filename":"image_06042025_07_55_01_5872.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e088d5d2442f5628842b5bc3913b627f.jpg","text":"TemporaryFile(/tmp/multipartBody7397417851963923493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970087768,"filename":"image_06042025_07_59_02_0529.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e17292e1f86294006eb6c16cba455592.jpg","text":"TemporaryFile(/tmp/multipartBody4621090336864747507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970087768,"filename":"image_06042025_07_58_01_8643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/54ca27d22df5e6a85f33fc08292c4da4.jpg","text":"TemporaryFile(/tmp/multipartBody8570845192393546600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970087768,"filename":"image_06042025_07_56_01_4460.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192292","file1":"1350192282","file0":"1350192277","file4":"1350192305","file5":"1350192308","file3":"1350192300"},"map_files_photo_id_array":[{"photo_id":"1350192308","filename":"file5"},{"photo_id":"1350192292","filename":"file2"},{"photo_id":"1350192305","filename":"file4"},{"photo_id":"1350192282","filename":"file1"},{"photo_id":"1350192277","filename":"file0"},{"photo_id":"1350192300","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350192308":["hashtag1","hashtag2"]},{"1350192292":["hashtag1","hashtag2"]},{"1350192305":["hashtag1","hashtag2"]},{"1350192277":["hashtag1","hashtag2"]},{"1350192282":["hashtag1","hashtag2"]},{"1350192300":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350192308, 1350192292, 1350192305, 1350192277, 1350192282, 1350192300)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.19471049308777 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:09:03.468420
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/04/image_06042025_22_04_01_2810.jpg', 2), ('/home/pi/Desktop/images/06042025/07/53/image_06042025_07_53_02_2121.jpg', 2), ('/home/pi/Desktop/images/06042025/07/48/image_06042025_07_48_01_7353.jpg', 2), ('/home/pi/Desktop/images/06042025/07/47/image_06042025_07_47_01_7355.jpg', 2), ('/home/pi/Desktop/images/06042025/07/46/image_06042025_07_46_01_3545.jpg', 2), ('/home/pi/Desktop/images/06042025/07/45/image_06042025_07_45_01_3535.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/04/image_06042025_22_04_01_2810.jpg', '/home/pi/Desktop/images/06042025/07/53/image_06042025_07_53_02_2121.jpg', '/home/pi/Desktop/images/06042025/07/48/image_06042025_07_48_01_7353.jpg', '/home/pi/Desktop/images/06042025/07/47/image_06042025_07_47_01_7355.jpg', '/home/pi/Desktop/images/06042025/07/46/image_06042025_07_46_01_3545.jpg', '/home/pi/Desktop/images/06042025/07/45/image_06042025_07_45_01_3535.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/04/image_06042025_22_04_01_2810.jpg
/home/pi/Desktop/images/06042025/07/53/image_06042025_07_53_02_2121.jpg
/home/pi/Desktop/images/06042025/07/48/image_06042025_07_48_01_7353.jpg
/home/pi/Desktop/images/06042025/07/47/image_06042025_07_47_01_7355.jpg
/home/pi/Desktop/images/06042025/07/46/image_06042025_07_46_01_3545.jpg
/home/pi/Desktop/images/06042025/07/45/image_06042025_07_45_01_3535.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192440","1350192379","1350192460","1350192427","1350192375","1350192479"],"photo_ids_order":["1350192375","1350192379","1350192427","1350192440","1350192460","1350192479"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/18be86b4de5def06bcbf128f577dfd13.jpg","text":"TemporaryFile(/tmp/multipartBody8316874964882574154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970207773,"filename":"image_06042025_07_47_01_7355.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f627ca6abbe9165e72e929d7f105ce0f.jpg","text":"TemporaryFile(/tmp/multipartBody4515984936015062144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970207773,"filename":"image_06042025_07_53_02_2121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/96a2df2e463bc724346dd08530d66646.jpg","text":"TemporaryFile(/tmp/multipartBody8085595016471032263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970207773,"filename":"image_06042025_07_46_01_3545.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fad3f54eed99cb8a73ef5f57231f3b88.jpg","text":"TemporaryFile(/tmp/multipartBody1962884656709634420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970207773,"filename":"image_06042025_07_48_01_7353.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/81559d976bd5ebafaf2edb6d42dd0b4e.jpg","text":"TemporaryFile(/tmp/multipartBody4245164063673381388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970207773,"filename":"image_06042025_22_04_01_2810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/301a638c46f4252c41d8dd3568423a47.jpg","text":"TemporaryFile(/tmp/multipartBody631635921507078094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970207773,"filename":"image_06042025_07_45_01_3535.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192427","file1":"1350192379","file0":"1350192375","file4":"1350192460","file5":"1350192479","file3":"1350192440"},"map_files_photo_id_array":[{"photo_id":"1350192479","filename":"file5"},{"photo_id":"1350192427","filename":"file2"},{"photo_id":"1350192460","filename":"file4"},{"photo_id":"1350192379","filename":"file1"},{"photo_id":"1350192375","filename":"file0"},{"photo_id":"1350192440","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350192440":["hashtag1","hashtag2"]},{"1350192379":["hashtag1","hashtag2"]},{"1350192460":["hashtag1","hashtag2"]},{"1350192427":["hashtag1","hashtag2"]},{"1350192375":["hashtag1","hashtag2"]},{"1350192479":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350192440, 1350192379, 1350192460, 1350192427, 1350192375, 1350192479)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.54346680641174 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:11:03.307803
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/09/image_06042025_22_09_01_4809.jpg', 2), ('/home/pi/Desktop/images/06042025/07/43/image_06042025_07_43_01_7933.jpg', 2), ('/home/pi/Desktop/images/06042025/07/42/image_06042025_07_42_01_4625.jpg', 2), ('/home/pi/Desktop/images/06042025/07/41/image_06042025_07_41_01_3015.jpg', 2), ('/home/pi/Desktop/images/06042025/07/39/image_06042025_07_39_01_2934.jpg', 2), ('/home/pi/Desktop/images/06042025/07/36/image_06042025_07_36_01_8180.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/09/image_06042025_22_09_01_4809.jpg', '/home/pi/Desktop/images/06042025/07/43/image_06042025_07_43_01_7933.jpg', '/home/pi/Desktop/images/06042025/07/42/image_06042025_07_42_01_4625.jpg', '/home/pi/Desktop/images/06042025/07/41/image_06042025_07_41_01_3015.jpg', '/home/pi/Desktop/images/06042025/07/39/image_06042025_07_39_01_2934.jpg', '/home/pi/Desktop/images/06042025/07/36/image_06042025_07_36_01_8180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/09/image_06042025_22_09_01_4809.jpg
/home/pi/Desktop/images/06042025/07/43/image_06042025_07_43_01_7933.jpg
/home/pi/Desktop/images/06042025/07/42/image_06042025_07_42_01_4625.jpg
/home/pi/Desktop/images/06042025/07/41/image_06042025_07_41_01_3015.jpg
/home/pi/Desktop/images/06042025/07/39/image_06042025_07_39_01_2934.jpg
/home/pi/Desktop/images/06042025/07/36/image_06042025_07_36_01_8180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192713","1350192670","1350192727","1350192690","1350192705","1350192683"],"photo_ids_order":["1350192670","1350192683","1350192690","1350192705","1350192713","1350192727"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7278a1fb63c6c22b4e1ede8d35467367.jpg","text":"TemporaryFile(/tmp/multipartBody1287743494650581847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970327657,"filename":"image_06042025_07_39_01_2934.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0d44a85a47288fbe3d2195df9d5d5696.jpg","text":"TemporaryFile(/tmp/multipartBody4682176603192655263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970327657,"filename":"image_06042025_22_09_01_4809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f2454b091fd2e1f290fa294a2c9ad520.jpg","text":"TemporaryFile(/tmp/multipartBody7946678216030128798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970327657,"filename":"image_06042025_07_36_01_8180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/52f15e0292acfe904f0477494cb744f7.jpg","text":"TemporaryFile(/tmp/multipartBody5586513694532179675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970327657,"filename":"image_06042025_07_42_01_4625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9084b8c00c3562bfbd6bee5d72be4f91.jpg","text":"TemporaryFile(/tmp/multipartBody2858789140586184530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970327657,"filename":"image_06042025_07_41_01_3015.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa90d24fe8f08a62fcb92aae96b5d372.jpg","text":"TemporaryFile(/tmp/multipartBody8714958286203364955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970327657,"filename":"image_06042025_07_43_01_7933.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192690","file1":"1350192683","file0":"1350192670","file4":"1350192713","file5":"1350192727","file3":"1350192705"},"map_files_photo_id_array":[{"photo_id":"1350192727","filename":"file5"},{"photo_id":"1350192690","filename":"file2"},{"photo_id":"1350192713","filename":"file4"},{"photo_id":"1350192683","filename":"file1"},{"photo_id":"1350192670","filename":"file0"},{"photo_id":"1350192705","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350192713":["hashtag1","hashtag2"]},{"1350192670":["hashtag1","hashtag2"]},{"1350192727":["hashtag1","hashtag2"]},{"1350192690":["hashtag1","hashtag2"]},{"1350192705":["hashtag1","hashtag2"]},{"1350192683":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350192713, 1350192670, 1350192727, 1350192690, 1350192705, 1350192683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.71937942504883 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:13:03.242906
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/11/image_06042025_22_11_01_6026.jpg', 2), ('/home/pi/Desktop/images/06042025/07/33/image_06042025_07_33_02_1587.jpg', 2), ('/home/pi/Desktop/images/06042025/07/32/image_06042025_07_32_01_9995.jpg', 2), ('/home/pi/Desktop/images/06042025/07/31/image_06042025_07_31_02_0805.jpg', 2), ('/home/pi/Desktop/images/06042025/07/29/image_06042025_07_29_01_7109.jpg', 2), ('/home/pi/Desktop/images/06042025/07/28/image_06042025_07_28_02_2124.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/11/image_06042025_22_11_01_6026.jpg', '/home/pi/Desktop/images/06042025/07/33/image_06042025_07_33_02_1587.jpg', '/home/pi/Desktop/images/06042025/07/32/image_06042025_07_32_01_9995.jpg', '/home/pi/Desktop/images/06042025/07/31/image_06042025_07_31_02_0805.jpg', '/home/pi/Desktop/images/06042025/07/29/image_06042025_07_29_01_7109.jpg', '/home/pi/Desktop/images/06042025/07/28/image_06042025_07_28_02_2124.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/11/image_06042025_22_11_01_6026.jpg
/home/pi/Desktop/images/06042025/07/33/image_06042025_07_33_02_1587.jpg
/home/pi/Desktop/images/06042025/07/32/image_06042025_07_32_01_9995.jpg
/home/pi/Desktop/images/06042025/07/31/image_06042025_07_31_02_0805.jpg
/home/pi/Desktop/images/06042025/07/29/image_06042025_07_29_01_7109.jpg
/home/pi/Desktop/images/06042025/07/28/image_06042025_07_28_02_2124.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193231","1350193221","1350193209","1350193206","1350193238","1350193214"],"photo_ids_order":["1350193206","1350193209","1350193214","1350193221","1350193231","1350193238"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9c99a5f2a16cfd254c639b5a2905c922.jpg","text":"TemporaryFile(/tmp/multipartBody7456835593281496136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970447419,"filename":"image_06042025_07_29_01_7109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/22b31b2cfd7b74404a7a0f3e4b3eb4c0.jpg","text":"TemporaryFile(/tmp/multipartBody8820280619958121346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970447419,"filename":"image_06042025_07_31_02_0805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c070d3c8c792c0f00a39cde1ae8f096d.jpg","text":"TemporaryFile(/tmp/multipartBody1833976750657840002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970447419,"filename":"image_06042025_07_33_02_1587.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/de8ba4c681f049b3b50f322b721f285a.jpg","text":"TemporaryFile(/tmp/multipartBody2573330439800998523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970447419,"filename":"image_06042025_22_11_01_6026.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4144abfb470caaab065f5fa6c988c508.jpg","text":"TemporaryFile(/tmp/multipartBody590343600864648347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970447419,"filename":"image_06042025_07_28_02_2124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec903b907d98d31c5cb7d8bb46190d53.jpg","text":"TemporaryFile(/tmp/multipartBody4645715228346149624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970447419,"filename":"image_06042025_07_32_01_9995.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193214","file1":"1350193209","file0":"1350193206","file4":"1350193231","file5":"1350193238","file3":"1350193221"},"map_files_photo_id_array":[{"photo_id":"1350193238","filename":"file5"},{"photo_id":"1350193214","filename":"file2"},{"photo_id":"1350193231","filename":"file4"},{"photo_id":"1350193209","filename":"file1"},{"photo_id":"1350193206","filename":"file0"},{"photo_id":"1350193221","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350193231":["hashtag1","hashtag2"]},{"1350193221":["hashtag1","hashtag2"]},{"1350193209":["hashtag1","hashtag2"]},{"1350193206":["hashtag1","hashtag2"]},{"1350193238":["hashtag1","hashtag2"]},{"1350193214":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350193231, 1350193221, 1350193209, 1350193206, 1350193238, 1350193214)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.71748733520508 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:15:04.066403
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/07/27/image_06042025_07_27_02_2066.jpg', 2), ('/home/pi/Desktop/images/06042025/07/26/image_06042025_07_26_01_7987.jpg', 2), ('/home/pi/Desktop/images/06042025/07/21/image_06042025_07_21_01_9830.jpg', 2), ('/home/pi/Desktop/images/06042025/07/19/image_06042025_07_19_01_7874.jpg', 2), ('/home/pi/Desktop/images/06042025/07/16/image_06042025_07_16_01_9283.jpg', 2), ('/home/pi/Desktop/images/06042025/07/15/image_06042025_07_15_01_7589.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/07/27/image_06042025_07_27_02_2066.jpg', '/home/pi/Desktop/images/06042025/07/26/image_06042025_07_26_01_7987.jpg', '/home/pi/Desktop/images/06042025/07/21/image_06042025_07_21_01_9830.jpg', '/home/pi/Desktop/images/06042025/07/19/image_06042025_07_19_01_7874.jpg', '/home/pi/Desktop/images/06042025/07/16/image_06042025_07_16_01_9283.jpg', '/home/pi/Desktop/images/06042025/07/15/image_06042025_07_15_01_7589.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/07/27/image_06042025_07_27_02_2066.jpg
/home/pi/Desktop/images/06042025/07/26/image_06042025_07_26_01_7987.jpg
/home/pi/Desktop/images/06042025/07/21/image_06042025_07_21_01_9830.jpg
/home/pi/Desktop/images/06042025/07/19/image_06042025_07_19_01_7874.jpg
/home/pi/Desktop/images/06042025/07/16/image_06042025_07_16_01_9283.jpg
/home/pi/Desktop/images/06042025/07/15/image_06042025_07_15_01_7589.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193291","1350193267","1350193306","1350193272","1350193283","1350193277"],"photo_ids_order":["1350193267","1350193272","1350193277","1350193283","1350193291","1350193306"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9cbda7448ca6f3e14e7e449183612f63.jpg","text":"TemporaryFile(/tmp/multipartBody4171255951007092812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970568669,"filename":"image_06042025_07_16_01_9283.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed125525fb8e5aab80c224526ab4c489.jpg","text":"TemporaryFile(/tmp/multipartBody4899237189342711761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970568669,"filename":"image_06042025_07_27_02_2066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e64eec7d0d9d0c64b47b182b3ad2a5ef.jpg","text":"TemporaryFile(/tmp/multipartBody8754888330060937067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970568669,"filename":"image_06042025_07_15_01_7589.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/907a55385a3afbe567b6c8c4ca5b0ef8.jpg","text":"TemporaryFile(/tmp/multipartBody9199832131017430317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970568669,"filename":"image_06042025_07_26_01_7987.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/48fc8f1acaaeaf16fea163d035acdb6a.jpg","text":"TemporaryFile(/tmp/multipartBody1083910003338920161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970568669,"filename":"image_06042025_07_19_01_7874.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/98d504018b89c578a997984b01a3d42c.jpg","text":"TemporaryFile(/tmp/multipartBody1063435247742066919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970568669,"filename":"image_06042025_07_21_01_9830.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193277","file1":"1350193272","file0":"1350193267","file4":"1350193291","file5":"1350193306","file3":"1350193283"},"map_files_photo_id_array":[{"photo_id":"1350193306","filename":"file5"},{"photo_id":"1350193277","filename":"file2"},{"photo_id":"1350193291","filename":"file4"},{"photo_id":"1350193272","filename":"file1"},{"photo_id":"1350193267","filename":"file0"},{"photo_id":"1350193283","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350193291":["hashtag1","hashtag2"]},{"1350193267":["hashtag1","hashtag2"]},{"1350193306":["hashtag1","hashtag2"]},{"1350193272":["hashtag1","hashtag2"]},{"1350193283":["hashtag1","hashtag2"]},{"1350193277":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350193291, 1350193267, 1350193306, 1350193272, 1350193283, 1350193277)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.24101257324219 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:17:04.018488
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/07/14/image_06042025_07_14_01_4858.jpg', 2), ('/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg', 2), ('/home/pi/Desktop/images/06042025/07/11/image_06042025_07_11_01_4156.jpg', 2), ('/home/pi/Desktop/images/06042025/07/10/image_06042025_07_10_02_0522.jpg', 2), ('/home/pi/Desktop/images/06042025/07/06/image_06042025_07_06_01_9787.jpg', 2), ('/home/pi/Desktop/images/06042025/06/59/image_06042025_06_59_01_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/07/14/image_06042025_07_14_01_4858.jpg', '/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg', '/home/pi/Desktop/images/06042025/07/11/image_06042025_07_11_01_4156.jpg', '/home/pi/Desktop/images/06042025/07/10/image_06042025_07_10_02_0522.jpg', '/home/pi/Desktop/images/06042025/07/06/image_06042025_07_06_01_9787.jpg', '/home/pi/Desktop/images/06042025/06/59/image_06042025_06_59_01_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/07/14/image_06042025_07_14_01_4858.jpg
/home/pi/Desktop/images/06042025/07/13/image_06042025_07_13_02_2215.jpg
/home/pi/Desktop/images/06042025/07/11/image_06042025_07_11_01_4156.jpg
/home/pi/Desktop/images/06042025/07/10/image_06042025_07_10_02_0522.jpg
/home/pi/Desktop/images/06042025/07/06/image_06042025_07_06_01_9787.jpg
/home/pi/Desktop/images/06042025/06/59/image_06042025_06_59_01_9622.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193525","1350193540","1350193449","1350193470","1350193571","1350193559"],"photo_ids_order":["1350193449","1350193470","1350193525","1350193540","1350193559","1350193571"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/51ce8034cc80e076a313d9fa64b0ab47.jpg","text":"TemporaryFile(/tmp/multipartBody2962905118932469096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970688820,"filename":"image_06042025_07_11_01_4156.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/57dbbfcddfdc1d38d5f54bd95ddc12f7.jpg","text":"TemporaryFile(/tmp/multipartBody5823812462419113685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970688820,"filename":"image_06042025_07_10_02_0522.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4da2db6b9bf8ea9344772e07f91c6461.jpg","text":"TemporaryFile(/tmp/multipartBody5205489494712978943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970688820,"filename":"image_06042025_07_14_01_4858.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/00aec6e40c25313e12eccdeb643e76e7.jpg","text":"TemporaryFile(/tmp/multipartBody3802880412842307693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970688820,"filename":"image_06042025_07_13_02_2215.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f60f65ddf7d12cf1e7d294022de3d357.jpg","text":"TemporaryFile(/tmp/multipartBody8574130039791479617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970688820,"filename":"image_06042025_06_59_01_9622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1bc4b896ce2f5ebc9f6e7bf726d6a4af.jpg","text":"TemporaryFile(/tmp/multipartBody3385296803163364245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970688820,"filename":"image_06042025_07_06_01_9787.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193525","file1":"1350193470","file0":"1350193449","file4":"1350193559","file5":"1350193571","file3":"1350193540"},"map_files_photo_id_array":[{"photo_id":"1350193571","filename":"file5"},{"photo_id":"1350193525","filename":"file2"},{"photo_id":"1350193559","filename":"file4"},{"photo_id":"1350193470","filename":"file1"},{"photo_id":"1350193449","filename":"file0"},{"photo_id":"1350193540","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350193525":["hashtag1","hashtag2"]},{"1350193540":["hashtag1","hashtag2"]},{"1350193449":["hashtag1","hashtag2"]},{"1350193470":["hashtag1","hashtag2"]},{"1350193571":["hashtag1","hashtag2"]},{"1350193559":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350193525, 1350193540, 1350193449, 1350193470, 1350193571, 1350193559)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.195876359939575 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:19:03.069386
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', 2), ('/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg', 2), ('/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg', 2), ('/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg', 2), ('/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', 2), ('/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg', '/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg', '/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg', '/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg', '/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg', '/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/06/57/image_06042025_06_57_01_6431.jpg
/home/pi/Desktop/images/06042025/06/54/image_06042025_06_54_01_4311.jpg
/home/pi/Desktop/images/06042025/06/53/image_06042025_06_53_01_3294.jpg
/home/pi/Desktop/images/06042025/06/47/image_06042025_06_47_02_2726.jpg
/home/pi/Desktop/images/06042025/06/46/image_06042025_06_46_01_8107.jpg
/home/pi/Desktop/images/06042025/06/45/image_06042025_06_45_01_6987.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193825","1350193698","1350193719","1350193688","1350193661","1350193693"],"photo_ids_order":["1350193661","1350193688","1350193693","1350193698","1350193719","1350193825"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6ccb0c711eea7b04a8e9a382f77721c7.jpg","text":"TemporaryFile(/tmp/multipartBody4091453895497491019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970807537,"filename":"image_06042025_06_45_01_6987.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/73e58c873cd7e760619250e084c944cd.jpg","text":"TemporaryFile(/tmp/multipartBody7006657616068979471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970807537,"filename":"image_06042025_06_47_02_2726.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/885d416dcbd2e8ccfbbfb0b7ea31eaa2.jpg","text":"TemporaryFile(/tmp/multipartBody5405743071101794161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970807537,"filename":"image_06042025_06_46_01_8107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9b68569666ea7cfdfadd65c8fece2057.jpg","text":"TemporaryFile(/tmp/multipartBody8205376373408573456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970807537,"filename":"image_06042025_06_54_01_4311.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/40bf020fbc9dd3932ff1c1b3e2b623df.jpg","text":"TemporaryFile(/tmp/multipartBody4375950704700189322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970807537,"filename":"image_06042025_06_57_01_6431.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f11fc0b49d49fb9dd98252c5b597d052.jpg","text":"TemporaryFile(/tmp/multipartBody4505628835956790516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970807537,"filename":"image_06042025_06_53_01_3294.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193693","file1":"1350193688","file0":"1350193661","file4":"1350193719","file5":"1350193825","file3":"1350193698"},"map_files_photo_id_array":[{"photo_id":"1350193825","filename":"file5"},{"photo_id":"1350193693","filename":"file2"},{"photo_id":"1350193719","filename":"file4"},{"photo_id":"1350193688","filename":"file1"},{"photo_id":"1350193661","filename":"file0"},{"photo_id":"1350193698","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350193825":["hashtag1","hashtag2"]},{"1350193698":["hashtag1","hashtag2"]},{"1350193719":["hashtag1","hashtag2"]},{"1350193688":["hashtag1","hashtag2"]},{"1350193661":["hashtag1","hashtag2"]},{"1350193693":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350193825, 1350193698, 1350193719, 1350193688, 1350193661, 1350193693)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.52011823654175 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:21:03.179812
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/06/44/image_06042025_06_44_01_3772.jpg', 2), ('/home/pi/Desktop/images/06042025/06/43/image_06042025_06_43_01_5785.jpg', 2), ('/home/pi/Desktop/images/06042025/06/42/image_06042025_06_42_01_7327.jpg', 2), ('/home/pi/Desktop/images/06042025/06/41/image_06042025_06_41_01_8756.jpg', 2), ('/home/pi/Desktop/images/06042025/06/36/image_06042025_06_36_01_5236.jpg', 2), ('/home/pi/Desktop/images/06042025/06/35/image_06042025_06_35_01_5383.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/06/44/image_06042025_06_44_01_3772.jpg', '/home/pi/Desktop/images/06042025/06/43/image_06042025_06_43_01_5785.jpg', '/home/pi/Desktop/images/06042025/06/42/image_06042025_06_42_01_7327.jpg', '/home/pi/Desktop/images/06042025/06/41/image_06042025_06_41_01_8756.jpg', '/home/pi/Desktop/images/06042025/06/36/image_06042025_06_36_01_5236.jpg', '/home/pi/Desktop/images/06042025/06/35/image_06042025_06_35_01_5383.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/06/44/image_06042025_06_44_01_3772.jpg
/home/pi/Desktop/images/06042025/06/43/image_06042025_06_43_01_5785.jpg
/home/pi/Desktop/images/06042025/06/42/image_06042025_06_42_01_7327.jpg
/home/pi/Desktop/images/06042025/06/41/image_06042025_06_41_01_8756.jpg
/home/pi/Desktop/images/06042025/06/36/image_06042025_06_36_01_5236.jpg
/home/pi/Desktop/images/06042025/06/35/image_06042025_06_35_01_5383.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194101","1350194088","1350194198","1350194189","1350194204","1350194086"],"photo_ids_order":["1350194086","1350194088","1350194101","1350194189","1350194198","1350194204"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/26fb797a6869ab12951b69e25fc800cc.jpg","text":"TemporaryFile(/tmp/multipartBody4217670211729356613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970927958,"filename":"image_06042025_06_42_01_7327.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/059656258ba5afe1dbaa999622c9c595.jpg","text":"TemporaryFile(/tmp/multipartBody8860650899818853909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970927958,"filename":"image_06042025_06_43_01_5785.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9d29222c9ef05011e7dc4d58775e8518.jpg","text":"TemporaryFile(/tmp/multipartBody4903113939270935675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970927958,"filename":"image_06042025_06_36_01_5236.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d02b3a4e896774c8d7dfa40180cfc5b4.jpg","text":"TemporaryFile(/tmp/multipartBody604811332113507857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970927958,"filename":"image_06042025_06_41_01_8756.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d1af6db5e3257a4ac95c4e81e1b31768.jpg","text":"TemporaryFile(/tmp/multipartBody8064280092049755825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970927958,"filename":"image_06042025_06_35_01_5383.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0183b9a6cc6dbabf2273f9d342d4fd93.jpg","text":"TemporaryFile(/tmp/multipartBody1260639682699197747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970927958,"filename":"image_06042025_06_44_01_3772.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194101","file1":"1350194088","file0":"1350194086","file4":"1350194198","file5":"1350194204","file3":"1350194189"},"map_files_photo_id_array":[{"photo_id":"1350194204","filename":"file5"},{"photo_id":"1350194101","filename":"file2"},{"photo_id":"1350194198","filename":"file4"},{"photo_id":"1350194088","filename":"file1"},{"photo_id":"1350194086","filename":"file0"},{"photo_id":"1350194189","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350194101":["hashtag1","hashtag2"]},{"1350194088":["hashtag1","hashtag2"]},{"1350194198":["hashtag1","hashtag2"]},{"1350194189":["hashtag1","hashtag2"]},{"1350194204":["hashtag1","hashtag2"]},{"1350194086":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350194101, 1350194088, 1350194198, 1350194189, 1350194204, 1350194086)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.93762421607971 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:23:03.913888
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/12/image_06042025_22_12_01_5961.jpg', 2), ('/home/pi/Desktop/images/06042025/06/34/image_06042025_06_34_01_9743.jpg', 2), ('/home/pi/Desktop/images/06042025/06/33/image_06042025_06_33_01_8795.jpg', 2), ('/home/pi/Desktop/images/06042025/06/32/image_06042025_06_32_01_5931.jpg', 2), ('/home/pi/Desktop/images/06042025/06/26/image_06042025_06_26_01_7816.jpg', 2), ('/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/12/image_06042025_22_12_01_5961.jpg', '/home/pi/Desktop/images/06042025/06/34/image_06042025_06_34_01_9743.jpg', '/home/pi/Desktop/images/06042025/06/33/image_06042025_06_33_01_8795.jpg', '/home/pi/Desktop/images/06042025/06/32/image_06042025_06_32_01_5931.jpg', '/home/pi/Desktop/images/06042025/06/26/image_06042025_06_26_01_7816.jpg', '/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/12/image_06042025_22_12_01_5961.jpg
/home/pi/Desktop/images/06042025/06/34/image_06042025_06_34_01_9743.jpg
/home/pi/Desktop/images/06042025/06/33/image_06042025_06_33_01_8795.jpg
/home/pi/Desktop/images/06042025/06/32/image_06042025_06_32_01_5931.jpg
/home/pi/Desktop/images/06042025/06/26/image_06042025_06_26_01_7816.jpg
/home/pi/Desktop/images/06042025/06/25/image_06042025_06_25_01_5794.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194472","1350194460","1350194382","1350194378","1350194491","1350194485"],"photo_ids_order":["1350194378","1350194382","1350194460","1350194472","1350194485","1350194491"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e67b1ba4f3b7819f8a260c14ee1c0f54.jpg","text":"TemporaryFile(/tmp/multipartBody3887984561354575875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971048328,"filename":"image_06042025_06_32_01_5931.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/60576dabb06dd4d2f7f37728c88c25ff.jpg","text":"TemporaryFile(/tmp/multipartBody8239384130146924741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971048328,"filename":"image_06042025_06_33_01_8795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/87a446c04cc13238813fa1d23a7c066e.jpg","text":"TemporaryFile(/tmp/multipartBody4615277453789364538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971048328,"filename":"image_06042025_06_34_01_9743.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/85a9221edaca256f16a2a67ccacbb000.jpg","text":"TemporaryFile(/tmp/multipartBody8762987166737969100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971048328,"filename":"image_06042025_22_12_01_5961.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eaca0fb301d110c01f3c840bed4fe094.jpg","text":"TemporaryFile(/tmp/multipartBody4186197346070831607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971048328,"filename":"image_06042025_06_25_01_5794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/542cfc22c7c3808d9cd5678b6c78bf2b.jpg","text":"TemporaryFile(/tmp/multipartBody5231924442661630899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971048328,"filename":"image_06042025_06_26_01_7816.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194460","file1":"1350194382","file0":"1350194378","file4":"1350194485","file5":"1350194491","file3":"1350194472"},"map_files_photo_id_array":[{"photo_id":"1350194491","filename":"file5"},{"photo_id":"1350194460","filename":"file2"},{"photo_id":"1350194485","filename":"file4"},{"photo_id":"1350194382","filename":"file1"},{"photo_id":"1350194378","filename":"file0"},{"photo_id":"1350194472","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350194472":["hashtag1","hashtag2"]},{"1350194460":["hashtag1","hashtag2"]},{"1350194382":["hashtag1","hashtag2"]},{"1350194378":["hashtag1","hashtag2"]},{"1350194491":["hashtag1","hashtag2"]},{"1350194485":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350194472, 1350194460, 1350194382, 1350194378, 1350194491, 1350194485)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.19689345359802 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:25:06.739437
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/24/image_06042025_22_24_01_9819.jpg', 2), ('/home/pi/Desktop/images/06042025/22/23/image_06042025_22_23_02_1260.jpg', 2), ('/home/pi/Desktop/images/06042025/06/24/image_06042025_06_24_02_2108.jpg', 2), ('/home/pi/Desktop/images/06042025/06/23/image_06042025_06_23_02_1730.jpg', 2), ('/home/pi/Desktop/images/06042025/06/22/image_06042025_06_22_01_9649.jpg', 2), ('/home/pi/Desktop/images/06042025/06/21/image_06042025_06_21_01_7731.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/24/image_06042025_22_24_01_9819.jpg', '/home/pi/Desktop/images/06042025/22/23/image_06042025_22_23_02_1260.jpg', '/home/pi/Desktop/images/06042025/06/24/image_06042025_06_24_02_2108.jpg', '/home/pi/Desktop/images/06042025/06/23/image_06042025_06_23_02_1730.jpg', '/home/pi/Desktop/images/06042025/06/22/image_06042025_06_22_01_9649.jpg', '/home/pi/Desktop/images/06042025/06/21/image_06042025_06_21_01_7731.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/24/image_06042025_22_24_01_9819.jpg
/home/pi/Desktop/images/06042025/22/23/image_06042025_22_23_02_1260.jpg
/home/pi/Desktop/images/06042025/06/24/image_06042025_06_24_02_2108.jpg
/home/pi/Desktop/images/06042025/06/23/image_06042025_06_23_02_1730.jpg
/home/pi/Desktop/images/06042025/06/22/image_06042025_06_22_01_9649.jpg
/home/pi/Desktop/images/06042025/06/21/image_06042025_06_21_01_7731.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194643","1350194607","1350194630","1350194603","1350194593","1350194635"],"photo_ids_order":["1350194593","1350194603","1350194607","1350194630","1350194635","1350194643"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/329200a83ae10b1f34e9d190b4cc0006.jpg","text":"TemporaryFile(/tmp/multipartBody2469841871996042598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971171761,"filename":"image_06042025_06_21_01_7731.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/266e2b87043c560314d74d14170c22da.jpg","text":"TemporaryFile(/tmp/multipartBody2427033849848996832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971171761,"filename":"image_06042025_06_24_02_2108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed3d197f9a110af29db61942a7b11e38.jpg","text":"TemporaryFile(/tmp/multipartBody7024047513637646540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971171761,"filename":"image_06042025_06_23_02_1730.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/516da89b933aa3e54c35a07f1ac95364.jpg","text":"TemporaryFile(/tmp/multipartBody5697732366066089135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971171761,"filename":"image_06042025_22_23_02_1260.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1de85093c7d7a15dba54436c7371021d.jpg","text":"TemporaryFile(/tmp/multipartBody369913819926042260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971171761,"filename":"image_06042025_22_24_01_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/9e60a6f3f788683dc75d8425d0f4b1f5.jpg","text":"TemporaryFile(/tmp/multipartBody1801752868050090805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971171761,"filename":"image_06042025_06_22_01_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194607","file1":"1350194603","file0":"1350194593","file4":"1350194635","file5":"1350194643","file3":"1350194630"},"map_files_photo_id_array":[{"photo_id":"1350194643","filename":"file5"},{"photo_id":"1350194607","filename":"file2"},{"photo_id":"1350194635","filename":"file4"},{"photo_id":"1350194603","filename":"file1"},{"photo_id":"1350194593","filename":"file0"},{"photo_id":"1350194630","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350194643":["hashtag1","hashtag2"]},{"1350194607":["hashtag1","hashtag2"]},{"1350194630":["hashtag1","hashtag2"]},{"1350194603":["hashtag1","hashtag2"]},{"1350194593":["hashtag1","hashtag2"]},{"1350194635":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350194643, 1350194607, 1350194630, 1350194603, 1350194593, 1350194635)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.54360890388489 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:27:04.183113
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/26/image_06042025_22_26_02_2191.jpg', 2), ('/home/pi/Desktop/images/06042025/22/25/image_06042025_22_25_02_0843.jpg', 2), ('/home/pi/Desktop/images/06042025/06/06/image_06042025_06_06_01_8728.jpg', 2), ('/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', 2), ('/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', 2), ('/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/26/image_06042025_22_26_02_2191.jpg', '/home/pi/Desktop/images/06042025/22/25/image_06042025_22_25_02_0843.jpg', '/home/pi/Desktop/images/06042025/06/06/image_06042025_06_06_01_8728.jpg', '/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg', '/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg', '/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/26/image_06042025_22_26_02_2191.jpg
/home/pi/Desktop/images/06042025/22/25/image_06042025_22_25_02_0843.jpg
/home/pi/Desktop/images/06042025/06/06/image_06042025_06_06_01_8728.jpg
/home/pi/Desktop/images/06042025/06/05/image_06042025_06_05_01_8433.jpg
/home/pi/Desktop/images/06042025/06/02/image_06042025_06_02_01_9863.jpg
/home/pi/Desktop/images/06042025/05/53/image_06042025_05_53_01_8991.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194913","1350194873","1350194924","1350194846","1350194779","1350194869"],"photo_ids_order":["1350194779","1350194846","1350194869","1350194873","1350194913","1350194924"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/58c9a3d88ee0bde9a0b4dcdddb2cbe58.jpg","text":"TemporaryFile(/tmp/multipartBody6931247370060762478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971289021,"filename":"image_06042025_06_02_01_9863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f8c242d567110ed8ee0842c1e3036341.jpg","text":"TemporaryFile(/tmp/multipartBody9063123895509736828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971289021,"filename":"image_06042025_06_05_01_8433.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/17cd3fc74819bcac2ea7ea569c601330.jpg","text":"TemporaryFile(/tmp/multipartBody4351214962049145074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971289021,"filename":"image_06042025_05_53_01_8991.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8828b81742a9d0cf307537c683b2e04b.jpg","text":"TemporaryFile(/tmp/multipartBody167943071931405181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971289021,"filename":"image_06042025_22_25_02_0843.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1777086d9ddcb744b5a0ca5041a0ca9b.jpg","text":"TemporaryFile(/tmp/multipartBody6313723833620086883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971289021,"filename":"image_06042025_22_26_02_2191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3729fcfa55e60759c9781edb0e330621.jpg","text":"TemporaryFile(/tmp/multipartBody3884032857987685579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971289021,"filename":"image_06042025_06_06_01_8728.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194869","file1":"1350194846","file0":"1350194779","file4":"1350194913","file5":"1350194924","file3":"1350194873"},"map_files_photo_id_array":[{"photo_id":"1350194924","filename":"file5"},{"photo_id":"1350194869","filename":"file2"},{"photo_id":"1350194913","filename":"file4"},{"photo_id":"1350194846","filename":"file1"},{"photo_id":"1350194779","filename":"file0"},{"photo_id":"1350194873","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350194913":["hashtag1","hashtag2"]},{"1350194873":["hashtag1","hashtag2"]},{"1350194924":["hashtag1","hashtag2"]},{"1350194846":["hashtag1","hashtag2"]},{"1350194779":["hashtag1","hashtag2"]},{"1350194869":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350194913, 1350194873, 1350194924, 1350194846, 1350194779, 1350194869)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.74368715286255 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:29:04.063092
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/28/image_06042025_22_28_01_6876.jpg', 2), ('/home/pi/Desktop/images/06042025/22/27/image_06042025_22_27_01_7750.jpg', 2), ('/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', 2), ('/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', 2), ('/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', 2), ('/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/28/image_06042025_22_28_01_6876.jpg', '/home/pi/Desktop/images/06042025/22/27/image_06042025_22_27_01_7750.jpg', '/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg', '/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg', '/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg', '/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/28/image_06042025_22_28_01_6876.jpg
/home/pi/Desktop/images/06042025/22/27/image_06042025_22_27_01_7750.jpg
/home/pi/Desktop/images/06042025/05/52/image_06042025_05_52_01_7225.jpg
/home/pi/Desktop/images/06042025/05/51/image_06042025_05_51_01_5583.jpg
/home/pi/Desktop/images/06042025/05/50/image_06042025_05_50_01_5276.jpg
/home/pi/Desktop/images/06042025/05/49/image_06042025_05_49_01_4248.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195045","1350195132","1350195143","1350195137","1350195151","1350195040"],"photo_ids_order":["1350195040","1350195045","1350195132","1350195137","1350195143","1350195151"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/46f225be59a0fe179f8c049687b706b7.jpg","text":"TemporaryFile(/tmp/multipartBody918818494629872723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971408235,"filename":"image_06042025_22_27_01_7750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f64d960cbb720b7db82eee716cfd37fc.jpg","text":"TemporaryFile(/tmp/multipartBody4899643880541104934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971408235,"filename":"image_06042025_05_52_01_7225.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e34fc2b5e960cb120d176e58fcd3b89.jpg","text":"TemporaryFile(/tmp/multipartBody4592220528492138146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971408235,"filename":"image_06042025_05_50_01_5276.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/027ce9414d1982f5fa5e400fe91105c0.jpg","text":"TemporaryFile(/tmp/multipartBody3126613918213213337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971408235,"filename":"image_06042025_05_51_01_5583.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff2e0ba74b66aba16a088b6fe0659b07.jpg","text":"TemporaryFile(/tmp/multipartBody6372137298283583979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971408235,"filename":"image_06042025_05_49_01_4248.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/28081a0ee5bc6d0ebe8ae2645d336072.jpg","text":"TemporaryFile(/tmp/multipartBody7579710833957307139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971408235,"filename":"image_06042025_22_28_01_6876.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195132","file1":"1350195045","file0":"1350195040","file4":"1350195143","file5":"1350195151","file3":"1350195137"},"map_files_photo_id_array":[{"photo_id":"1350195151","filename":"file5"},{"photo_id":"1350195132","filename":"file2"},{"photo_id":"1350195143","filename":"file4"},{"photo_id":"1350195045","filename":"file1"},{"photo_id":"1350195040","filename":"file0"},{"photo_id":"1350195137","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350195045":["hashtag1","hashtag2"]},{"1350195132":["hashtag1","hashtag2"]},{"1350195143":["hashtag1","hashtag2"]},{"1350195137":["hashtag1","hashtag2"]},{"1350195151":["hashtag1","hashtag2"]},{"1350195040":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350195045, 1350195132, 1350195143, 1350195137, 1350195151, 1350195040)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.25834465026855 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:31:03.882038
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/05/48/image_06042025_05_48_02_1246.jpg', 2), ('/home/pi/Desktop/images/06042025/05/47/image_06042025_05_47_01_2938.jpg', 2), ('/home/pi/Desktop/images/06042025/05/46/image_06042025_05_46_01_9987.jpg', 2), ('/home/pi/Desktop/images/06042025/05/44/image_06042025_05_44_02_2080.jpg', 2), ('/home/pi/Desktop/images/06042025/05/39/image_06042025_05_39_01_9174.jpg', 2), ('/home/pi/Desktop/images/06042025/05/34/image_06042025_05_34_01_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/05/48/image_06042025_05_48_02_1246.jpg', '/home/pi/Desktop/images/06042025/05/47/image_06042025_05_47_01_2938.jpg', '/home/pi/Desktop/images/06042025/05/46/image_06042025_05_46_01_9987.jpg', '/home/pi/Desktop/images/06042025/05/44/image_06042025_05_44_02_2080.jpg', '/home/pi/Desktop/images/06042025/05/39/image_06042025_05_39_01_9174.jpg', '/home/pi/Desktop/images/06042025/05/34/image_06042025_05_34_01_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/05/48/image_06042025_05_48_02_1246.jpg
/home/pi/Desktop/images/06042025/05/47/image_06042025_05_47_01_2938.jpg
/home/pi/Desktop/images/06042025/05/46/image_06042025_05_46_01_9987.jpg
/home/pi/Desktop/images/06042025/05/44/image_06042025_05_44_02_2080.jpg
/home/pi/Desktop/images/06042025/05/39/image_06042025_05_39_01_9174.jpg
/home/pi/Desktop/images/06042025/05/34/image_06042025_05_34_01_9599.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195417","1350195359","1350195428","1350195370","1350195352","1350195424"],"photo_ids_order":["1350195352","1350195359","1350195370","1350195417","1350195424","1350195428"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/93b22c28fe382e9af01aa12b6ad53dc2.jpg","text":"TemporaryFile(/tmp/multipartBody4816371028385073640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971528642,"filename":"image_06042025_05_44_02_2080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/13f9a17ed5e30723e34b2831ef18a84b.jpg","text":"TemporaryFile(/tmp/multipartBody378174146976060507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971528642,"filename":"image_06042025_05_47_01_2938.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1d550c1a0a9b916bf1ba047d751cc9e6.jpg","text":"TemporaryFile(/tmp/multipartBody1041515292874884579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971528642,"filename":"image_06042025_05_34_01_9599.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aff1f758ecf91fb06cb644bdec5bd1e4.jpg","text":"TemporaryFile(/tmp/multipartBody7917581679417802926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971528642,"filename":"image_06042025_05_46_01_9987.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6217b83339d732251afd2558b4a5fd7f.jpg","text":"TemporaryFile(/tmp/multipartBody3365304321283194497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971528642,"filename":"image_06042025_05_48_02_1246.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ee41ba4e6e2b45a52a201c689da68175.jpg","text":"TemporaryFile(/tmp/multipartBody4034169024141291599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971528642,"filename":"image_06042025_05_39_01_9174.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195370","file1":"1350195359","file0":"1350195352","file4":"1350195424","file5":"1350195428","file3":"1350195417"},"map_files_photo_id_array":[{"photo_id":"1350195428","filename":"file5"},{"photo_id":"1350195370","filename":"file2"},{"photo_id":"1350195424","filename":"file4"},{"photo_id":"1350195359","filename":"file1"},{"photo_id":"1350195352","filename":"file0"},{"photo_id":"1350195417","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350195417":["hashtag1","hashtag2"]},{"1350195359":["hashtag1","hashtag2"]},{"1350195428":["hashtag1","hashtag2"]},{"1350195370":["hashtag1","hashtag2"]},{"1350195352":["hashtag1","hashtag2"]},{"1350195424":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350195417, 1350195359, 1350195428, 1350195370, 1350195352, 1350195424)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 71.54873180389404 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:33:03.250395
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg', 2), ('/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', 2), ('/home/pi/Desktop/images/06042025/05/30/image_06042025_05_30_01_4839.jpg', 2), ('/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg', 2), ('/home/pi/Desktop/images/06042025/05/25/image_06042025_05_25_01_5677.jpg', 2), ('/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg', '/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg', '/home/pi/Desktop/images/06042025/05/30/image_06042025_05_30_01_4839.jpg', '/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg', '/home/pi/Desktop/images/06042025/05/25/image_06042025_05_25_01_5677.jpg', '/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/05/33/image_06042025_05_33_01_7259.jpg
/home/pi/Desktop/images/06042025/05/31/image_06042025_05_31_01_1934.jpg
/home/pi/Desktop/images/06042025/05/30/image_06042025_05_30_01_4839.jpg
/home/pi/Desktop/images/06042025/05/29/image_06042025_05_29_01_4053.jpg
/home/pi/Desktop/images/06042025/05/25/image_06042025_05_25_01_5677.jpg
/home/pi/Desktop/images/06042025/05/20/image_06042025_05_20_01_8427.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195497","1350195472","1350195532","1350195511","1350195480","1350195474"],"photo_ids_order":["1350195472","1350195474","1350195480","1350195497","1350195511","1350195532"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4cf19d762194e465674ea284b02b01b3.jpg","text":"TemporaryFile(/tmp/multipartBody6607637967220247480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971647911,"filename":"image_06042025_05_29_01_4053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4d005de0a966da792c840c57a0519227.jpg","text":"TemporaryFile(/tmp/multipartBody8379155910704506229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971647911,"filename":"image_06042025_05_33_01_7259.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a72392aad74fb6c290157cb1d0e0bba6.jpg","text":"TemporaryFile(/tmp/multipartBody1262434389355772716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971647911,"filename":"image_06042025_05_20_01_8427.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7844fd813a178af55a05859c0cf0f699.jpg","text":"TemporaryFile(/tmp/multipartBody3333362333838526094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971647911,"filename":"image_06042025_05_25_01_5677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/90b7193fbfa230f601c2e8166aa9bb9d.jpg","text":"TemporaryFile(/tmp/multipartBody6551903204487750115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971647911,"filename":"image_06042025_05_30_01_4839.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af0dc575728a9d7e91de32bf85d80568.jpg","text":"TemporaryFile(/tmp/multipartBody1833511217215354199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971647911,"filename":"image_06042025_05_31_01_1934.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195480","file1":"1350195474","file0":"1350195472","file4":"1350195511","file5":"1350195532","file3":"1350195497"},"map_files_photo_id_array":[{"photo_id":"1350195532","filename":"file5"},{"photo_id":"1350195480","filename":"file2"},{"photo_id":"1350195511","filename":"file4"},{"photo_id":"1350195474","filename":"file1"},{"photo_id":"1350195472","filename":"file0"},{"photo_id":"1350195497","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350195497":["hashtag1","hashtag2"]},{"1350195472":["hashtag1","hashtag2"]},{"1350195532":["hashtag1","hashtag2"]},{"1350195511":["hashtag1","hashtag2"]},{"1350195480":["hashtag1","hashtag2"]},{"1350195474":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350195497, 1350195472, 1350195532, 1350195511, 1350195480, 1350195474)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.05595278739929 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:35:03.779508
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg', 2), ('/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg', 2), ('/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg', 2), ('/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', 2), ('/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg', '/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg', '/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg', '/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg', '/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg', '/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/05/19/image_06042025_05_19_01_7738.jpg
/home/pi/Desktop/images/06042025/05/17/image_06042025_05_17_01_8579.jpg
/home/pi/Desktop/images/06042025/05/15/image_06042025_05_15_01_3508.jpg
/home/pi/Desktop/images/06042025/05/11/image_06042025_05_11_02_0980.jpg
/home/pi/Desktop/images/06042025/05/10/image_06042025_05_10_01_7988.jpg
/home/pi/Desktop/images/06042025/05/09/image_06042025_05_09_01_5111.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195777","1350195775","1350195808","1350195798","1350195783","1350195817"],"photo_ids_order":["1350195775","1350195777","1350195783","1350195798","1350195808","1350195817"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ac4a4a5f9a27b87c3898829abbbe9e3d.jpg","text":"TemporaryFile(/tmp/multipartBody3418703471572471849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971768541,"filename":"image_06042025_05_17_01_8579.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fe1810e88494872242038de57868493a.jpg","text":"TemporaryFile(/tmp/multipartBody984264939872380618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971768541,"filename":"image_06042025_05_19_01_7738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e4af8ec6728ff25872cf5257186c888c.jpg","text":"TemporaryFile(/tmp/multipartBody606310475904232442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971768541,"filename":"image_06042025_05_10_01_7988.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d8516b47e04fd0fc0f6ed96c4e151fd8.jpg","text":"TemporaryFile(/tmp/multipartBody5330920814421444484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971768541,"filename":"image_06042025_05_11_02_0980.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc337b2ad55389288946b05b52be5c3b.jpg","text":"TemporaryFile(/tmp/multipartBody7740615749833843957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971768541,"filename":"image_06042025_05_15_01_3508.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e8a7854648378f1da848865b02a5adf7.jpg","text":"TemporaryFile(/tmp/multipartBody8375011073728892394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971768541,"filename":"image_06042025_05_09_01_5111.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195783","file1":"1350195777","file0":"1350195775","file4":"1350195808","file5":"1350195817","file3":"1350195798"},"map_files_photo_id_array":[{"photo_id":"1350195817","filename":"file5"},{"photo_id":"1350195783","filename":"file2"},{"photo_id":"1350195808","filename":"file4"},{"photo_id":"1350195777","filename":"file1"},{"photo_id":"1350195775","filename":"file0"},{"photo_id":"1350195798","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350195777":["hashtag1","hashtag2"]},{"1350195775":["hashtag1","hashtag2"]},{"1350195808":["hashtag1","hashtag2"]},{"1350195798":["hashtag1","hashtag2"]},{"1350195783":["hashtag1","hashtag2"]},{"1350195817":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350195777, 1350195775, 1350195808, 1350195798, 1350195783, 1350195817)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.56944131851196 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:37:03.790794
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/05/07/image_06042025_05_07_01_2492.jpg', 2), ('/home/pi/Desktop/images/06042025/05/06/image_06042025_05_06_01_6582.jpg', 2), ('/home/pi/Desktop/images/06042025/05/05/image_06042025_05_05_01_6579.jpg', 2), ('/home/pi/Desktop/images/06042025/05/04/image_06042025_05_04_01_5954.jpg', 2), ('/home/pi/Desktop/images/06042025/05/03/image_06042025_05_03_01_4696.jpg', 2), ('/home/pi/Desktop/images/06042025/05/02/image_06042025_05_02_01_3364.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/05/07/image_06042025_05_07_01_2492.jpg', '/home/pi/Desktop/images/06042025/05/06/image_06042025_05_06_01_6582.jpg', '/home/pi/Desktop/images/06042025/05/05/image_06042025_05_05_01_6579.jpg', '/home/pi/Desktop/images/06042025/05/04/image_06042025_05_04_01_5954.jpg', '/home/pi/Desktop/images/06042025/05/03/image_06042025_05_03_01_4696.jpg', '/home/pi/Desktop/images/06042025/05/02/image_06042025_05_02_01_3364.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/05/07/image_06042025_05_07_01_2492.jpg
/home/pi/Desktop/images/06042025/05/06/image_06042025_05_06_01_6582.jpg
/home/pi/Desktop/images/06042025/05/05/image_06042025_05_05_01_6579.jpg
/home/pi/Desktop/images/06042025/05/04/image_06042025_05_04_01_5954.jpg
/home/pi/Desktop/images/06042025/05/03/image_06042025_05_03_01_4696.jpg
/home/pi/Desktop/images/06042025/05/02/image_06042025_05_02_01_3364.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195933","1350195957","1350195875","1350195959","1350195950","1350195914"],"photo_ids_order":["1350195875","1350195914","1350195933","1350195950","1350195957","1350195959"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/65b8d3659256070d2994b18933a1bbde.jpg","text":"TemporaryFile(/tmp/multipartBody7902336325772152574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971888604,"filename":"image_06042025_05_05_01_6579.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9aa9704f2ce5ed74d31abb80c24abc0e.jpg","text":"TemporaryFile(/tmp/multipartBody2984696916440986101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971888604,"filename":"image_06042025_05_03_01_4696.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c580f3defa0dc7c6af0546dd912dc2b5.jpg","text":"TemporaryFile(/tmp/multipartBody2355302732210635709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971888604,"filename":"image_06042025_05_07_01_2492.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc665cf7148a28cf79e1956310620d6f.jpg","text":"TemporaryFile(/tmp/multipartBody3731664167512415819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971888604,"filename":"image_06042025_05_02_01_3364.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/411738cedc31375ec62c49259c4f4f4b.jpg","text":"TemporaryFile(/tmp/multipartBody4202841066908393673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971888604,"filename":"image_06042025_05_04_01_5954.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dbf4aa35296af7e38b5629108b2894e5.jpg","text":"TemporaryFile(/tmp/multipartBody3178998662376199989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971888604,"filename":"image_06042025_05_06_01_6582.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195933","file1":"1350195914","file0":"1350195875","file4":"1350195957","file5":"1350195959","file3":"1350195950"},"map_files_photo_id_array":[{"photo_id":"1350195959","filename":"file5"},{"photo_id":"1350195933","filename":"file2"},{"photo_id":"1350195957","filename":"file4"},{"photo_id":"1350195914","filename":"file1"},{"photo_id":"1350195875","filename":"file0"},{"photo_id":"1350195950","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350195933":["hashtag1","hashtag2"]},{"1350195957":["hashtag1","hashtag2"]},{"1350195875":["hashtag1","hashtag2"]},{"1350195959":["hashtag1","hashtag2"]},{"1350195950":["hashtag1","hashtag2"]},{"1350195914":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350195933, 1350195957, 1350195875, 1350195959, 1350195950, 1350195914)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.90655088424683 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:39:03.586634
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/05/01/image_06042025_05_01_01_2684.jpg', 2), ('/home/pi/Desktop/images/06042025/05/00/image_06042025_05_00_01_8052.jpg', 2), ('/home/pi/Desktop/images/06042025/04/59/image_06042025_04_59_01_7769.jpg', 2), ('/home/pi/Desktop/images/06042025/04/58/image_06042025_04_58_01_3723.jpg', 2), ('/home/pi/Desktop/images/06042025/04/57/image_06042025_04_57_01_5517.jpg', 2), ('/home/pi/Desktop/images/06042025/04/56/image_06042025_04_56_02_1986.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/05/01/image_06042025_05_01_01_2684.jpg', '/home/pi/Desktop/images/06042025/05/00/image_06042025_05_00_01_8052.jpg', '/home/pi/Desktop/images/06042025/04/59/image_06042025_04_59_01_7769.jpg', '/home/pi/Desktop/images/06042025/04/58/image_06042025_04_58_01_3723.jpg', '/home/pi/Desktop/images/06042025/04/57/image_06042025_04_57_01_5517.jpg', '/home/pi/Desktop/images/06042025/04/56/image_06042025_04_56_02_1986.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/05/01/image_06042025_05_01_01_2684.jpg
/home/pi/Desktop/images/06042025/05/00/image_06042025_05_00_01_8052.jpg
/home/pi/Desktop/images/06042025/04/59/image_06042025_04_59_01_7769.jpg
/home/pi/Desktop/images/06042025/04/58/image_06042025_04_58_01_3723.jpg
/home/pi/Desktop/images/06042025/04/57/image_06042025_04_57_01_5517.jpg
/home/pi/Desktop/images/06042025/04/56/image_06042025_04_56_02_1986.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196070","1350196064","1350196090","1350196084","1350196078","1350196087"],"photo_ids_order":["1350196064","1350196070","1350196078","1350196084","1350196087","1350196090"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cff018266a16b9ed805c273db7a9b57a.jpg","text":"TemporaryFile(/tmp/multipartBody8306404562072820243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972008372,"filename":"image_06042025_05_00_01_8052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b02f0c6eeb9483a7e405b2bce6861c90.jpg","text":"TemporaryFile(/tmp/multipartBody6137120062160988448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972008372,"filename":"image_06042025_05_01_01_2684.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0df7f61b01ce5954c06335df0ebc37c2.jpg","text":"TemporaryFile(/tmp/multipartBody3901204145115200875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972008372,"filename":"image_06042025_04_56_02_1986.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5fff94c9b7f127100556ef948dbab475.jpg","text":"TemporaryFile(/tmp/multipartBody2909029280550789603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972008372,"filename":"image_06042025_04_58_01_3723.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c3c69df6b77bad133ec4a90df22f0b2e.jpg","text":"TemporaryFile(/tmp/multipartBody3027324381311520174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972008372,"filename":"image_06042025_04_59_01_7769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3c725f9aa14c846737cf536edc858a6d.jpg","text":"TemporaryFile(/tmp/multipartBody1866791254888250322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972008372,"filename":"image_06042025_04_57_01_5517.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196078","file1":"1350196070","file0":"1350196064","file4":"1350196087","file5":"1350196090","file3":"1350196084"},"map_files_photo_id_array":[{"photo_id":"1350196090","filename":"file5"},{"photo_id":"1350196078","filename":"file2"},{"photo_id":"1350196087","filename":"file4"},{"photo_id":"1350196070","filename":"file1"},{"photo_id":"1350196064","filename":"file0"},{"photo_id":"1350196084","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196070":["hashtag1","hashtag2"]},{"1350196064":["hashtag1","hashtag2"]},{"1350196090":["hashtag1","hashtag2"]},{"1350196084":["hashtag1","hashtag2"]},{"1350196078":["hashtag1","hashtag2"]},{"1350196087":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196070, 1350196064, 1350196090, 1350196084, 1350196078, 1350196087)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.72200512886047 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:41:03.469680
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/04/55/image_06042025_04_55_01_3786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/54/image_06042025_04_54_01_8786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/47/image_06042025_04_47_02_1726.jpg', 2), ('/home/pi/Desktop/images/06042025/04/46/image_06042025_04_46_01_7844.jpg', 2), ('/home/pi/Desktop/images/06042025/04/45/image_06042025_04_45_01_4750.jpg', 2), ('/home/pi/Desktop/images/06042025/04/44/image_06042025_04_44_02_0233.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/04/55/image_06042025_04_55_01_3786.jpg', '/home/pi/Desktop/images/06042025/04/54/image_06042025_04_54_01_8786.jpg', '/home/pi/Desktop/images/06042025/04/47/image_06042025_04_47_02_1726.jpg', '/home/pi/Desktop/images/06042025/04/46/image_06042025_04_46_01_7844.jpg', '/home/pi/Desktop/images/06042025/04/45/image_06042025_04_45_01_4750.jpg', '/home/pi/Desktop/images/06042025/04/44/image_06042025_04_44_02_0233.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/04/55/image_06042025_04_55_01_3786.jpg
/home/pi/Desktop/images/06042025/04/54/image_06042025_04_54_01_8786.jpg
/home/pi/Desktop/images/06042025/04/47/image_06042025_04_47_02_1726.jpg
/home/pi/Desktop/images/06042025/04/46/image_06042025_04_46_01_7844.jpg
/home/pi/Desktop/images/06042025/04/45/image_06042025_04_45_01_4750.jpg
/home/pi/Desktop/images/06042025/04/44/image_06042025_04_44_02_0233.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196192","1350196159","1350196189","1350196174","1350196129","1350196138"],"photo_ids_order":["1350196129","1350196138","1350196159","1350196174","1350196189","1350196192"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e77963171ee222a9b2ec8e1711561f9a.jpg","text":"TemporaryFile(/tmp/multipartBody1791576695171933570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972128172,"filename":"image_06042025_04_44_02_0233.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0dd61ca2f26be2ed4930a89b6fc9da3e.jpg","text":"TemporaryFile(/tmp/multipartBody7246666709370045200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972128172,"filename":"image_06042025_04_47_02_1726.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/01f2ddc69bf2ee5d3fe082ce953557ae.jpg","text":"TemporaryFile(/tmp/multipartBody1958310913037255418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972128172,"filename":"image_06042025_04_45_01_4750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/306b4e924b7a81f41719570c87e88f01.jpg","text":"TemporaryFile(/tmp/multipartBody8063567048500197713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972128172,"filename":"image_06042025_04_46_01_7844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f6111804353a3caa9d872c7071b1c119.jpg","text":"TemporaryFile(/tmp/multipartBody8744464290767515815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972128172,"filename":"image_06042025_04_55_01_3786.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dbcab869f4dc1e9a8c3c72c2e25a49c2.jpg","text":"TemporaryFile(/tmp/multipartBody7654578100087869801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972128172,"filename":"image_06042025_04_54_01_8786.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196159","file1":"1350196138","file0":"1350196129","file4":"1350196189","file5":"1350196192","file3":"1350196174"},"map_files_photo_id_array":[{"photo_id":"1350196192","filename":"file5"},{"photo_id":"1350196159","filename":"file2"},{"photo_id":"1350196189","filename":"file4"},{"photo_id":"1350196138","filename":"file1"},{"photo_id":"1350196129","filename":"file0"},{"photo_id":"1350196174","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196192":["hashtag1","hashtag2"]},{"1350196159":["hashtag1","hashtag2"]},{"1350196189":["hashtag1","hashtag2"]},{"1350196174":["hashtag1","hashtag2"]},{"1350196129":["hashtag1","hashtag2"]},{"1350196138":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196192, 1350196159, 1350196189, 1350196174, 1350196129, 1350196138)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.9335446357727 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:43:03.072862
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/43/image_06042025_22_43_02_1431.jpg', 2), ('/home/pi/Desktop/images/06042025/04/43/image_06042025_04_43_01_8841.jpg', 2), ('/home/pi/Desktop/images/06042025/04/42/image_06042025_04_42_01_4889.jpg', 2), ('/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg', 2), ('/home/pi/Desktop/images/06042025/04/40/image_06042025_04_40_01_8785.jpg', 2), ('/home/pi/Desktop/images/06042025/04/36/image_06042025_04_36_02_0728.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/43/image_06042025_22_43_02_1431.jpg', '/home/pi/Desktop/images/06042025/04/43/image_06042025_04_43_01_8841.jpg', '/home/pi/Desktop/images/06042025/04/42/image_06042025_04_42_01_4889.jpg', '/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg', '/home/pi/Desktop/images/06042025/04/40/image_06042025_04_40_01_8785.jpg', '/home/pi/Desktop/images/06042025/04/36/image_06042025_04_36_02_0728.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/43/image_06042025_22_43_02_1431.jpg
/home/pi/Desktop/images/06042025/04/43/image_06042025_04_43_01_8841.jpg
/home/pi/Desktop/images/06042025/04/42/image_06042025_04_42_01_4889.jpg
/home/pi/Desktop/images/06042025/04/41/image_06042025_04_41_01_2286.jpg
/home/pi/Desktop/images/06042025/04/40/image_06042025_04_40_01_8785.jpg
/home/pi/Desktop/images/06042025/04/36/image_06042025_04_36_02_0728.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196347","1350196307","1350196276","1350196318","1350196296","1350196341"],"photo_ids_order":["1350196276","1350196296","1350196307","1350196318","1350196341","1350196347"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9e57898f9c17b598957879ab7f7f9653.jpg","text":"TemporaryFile(/tmp/multipartBody7242620911811558034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972247482,"filename":"image_06042025_04_36_02_0728.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ccf7b73959d486a9c6d88a2e0ff73462.jpg","text":"TemporaryFile(/tmp/multipartBody2604327966139315391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972247482,"filename":"image_06042025_04_42_01_4889.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/48731d2ffbcfaa12705059779b6426d9.jpg","text":"TemporaryFile(/tmp/multipartBody4998263280745764729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972247482,"filename":"image_06042025_22_43_02_1431.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8032f6b96ac02216e5ee086eb64bb65e.jpg","text":"TemporaryFile(/tmp/multipartBody5424800222243200297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972247482,"filename":"image_06042025_04_41_01_2286.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/64b07f87a0fa772b4d862342e419fde4.jpg","text":"TemporaryFile(/tmp/multipartBody1710466782229537640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972247482,"filename":"image_06042025_04_43_01_8841.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/98e5df50f92596c7106ec527b8fa16e7.jpg","text":"TemporaryFile(/tmp/multipartBody1160504988452921598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972247482,"filename":"image_06042025_04_40_01_8785.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196307","file1":"1350196296","file0":"1350196276","file4":"1350196341","file5":"1350196347","file3":"1350196318"},"map_files_photo_id_array":[{"photo_id":"1350196347","filename":"file5"},{"photo_id":"1350196307","filename":"file2"},{"photo_id":"1350196341","filename":"file4"},{"photo_id":"1350196296","filename":"file1"},{"photo_id":"1350196276","filename":"file0"},{"photo_id":"1350196318","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196347":["hashtag1","hashtag2"]},{"1350196307":["hashtag1","hashtag2"]},{"1350196276":["hashtag1","hashtag2"]},{"1350196318":["hashtag1","hashtag2"]},{"1350196296":["hashtag1","hashtag2"]},{"1350196341":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196347, 1350196307, 1350196276, 1350196318, 1350196296, 1350196341)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.41090393066406 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:45:03.991119
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/44/image_06042025_22_44_01_4279.jpg', 2), ('/home/pi/Desktop/images/06042025/22/29/image_06042025_22_29_01_8973.jpg', 2), ('/home/pi/Desktop/images/06042025/04/35/image_06042025_04_35_01_4478.jpg', 2), ('/home/pi/Desktop/images/06042025/04/33/image_06042025_04_33_02_1982.jpg', 2), ('/home/pi/Desktop/images/06042025/04/32/image_06042025_04_32_01_9037.jpg', 2), ('/home/pi/Desktop/images/06042025/04/31/image_06042025_04_31_01_8637.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/44/image_06042025_22_44_01_4279.jpg', '/home/pi/Desktop/images/06042025/22/29/image_06042025_22_29_01_8973.jpg', '/home/pi/Desktop/images/06042025/04/35/image_06042025_04_35_01_4478.jpg', '/home/pi/Desktop/images/06042025/04/33/image_06042025_04_33_02_1982.jpg', '/home/pi/Desktop/images/06042025/04/32/image_06042025_04_32_01_9037.jpg', '/home/pi/Desktop/images/06042025/04/31/image_06042025_04_31_01_8637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/44/image_06042025_22_44_01_4279.jpg
/home/pi/Desktop/images/06042025/22/29/image_06042025_22_29_01_8973.jpg
/home/pi/Desktop/images/06042025/04/35/image_06042025_04_35_01_4478.jpg
/home/pi/Desktop/images/06042025/04/33/image_06042025_04_33_02_1982.jpg
/home/pi/Desktop/images/06042025/04/32/image_06042025_04_32_01_9037.jpg
/home/pi/Desktop/images/06042025/04/31/image_06042025_04_31_01_8637.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196419","1350196401","1350196427","1350196424","1350196412","1350196405"],"photo_ids_order":["1350196401","1350196405","1350196412","1350196419","1350196424","1350196427"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/341cc6b1abc8452f3155ed5e09df4edc.jpg","text":"TemporaryFile(/tmp/multipartBody98637847759811403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972368259,"filename":"image_06042025_04_33_02_1982.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9fa5cf1d86a39210b7e66485a7f5aaa3.jpg","text":"TemporaryFile(/tmp/multipartBody1764236368330383781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972368259,"filename":"image_06042025_22_44_01_4279.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2b695dfa928a9a64a509a042fb8e01ee.jpg","text":"TemporaryFile(/tmp/multipartBody7972622632718483212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972368259,"filename":"image_06042025_04_31_01_8637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/341017ec50ae3f2db0ebe56fddb9d34e.jpg","text":"TemporaryFile(/tmp/multipartBody3868815673812345326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972368259,"filename":"image_06042025_04_32_01_9037.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/649c39793ea15c8e5cbf123d5b3b4e34.jpg","text":"TemporaryFile(/tmp/multipartBody6915095099150065090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972368259,"filename":"image_06042025_04_35_01_4478.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c09b08fc154b5cad63448208daee1799.jpg","text":"TemporaryFile(/tmp/multipartBody254149563536713299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972368259,"filename":"image_06042025_22_29_01_8973.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196412","file1":"1350196405","file0":"1350196401","file4":"1350196424","file5":"1350196427","file3":"1350196419"},"map_files_photo_id_array":[{"photo_id":"1350196427","filename":"file5"},{"photo_id":"1350196412","filename":"file2"},{"photo_id":"1350196424","filename":"file4"},{"photo_id":"1350196405","filename":"file1"},{"photo_id":"1350196401","filename":"file0"},{"photo_id":"1350196419","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196419":["hashtag1","hashtag2"]},{"1350196401":["hashtag1","hashtag2"]},{"1350196427":["hashtag1","hashtag2"]},{"1350196424":["hashtag1","hashtag2"]},{"1350196412":["hashtag1","hashtag2"]},{"1350196405":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196419, 1350196401, 1350196427, 1350196424, 1350196412, 1350196405)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.88851261138916 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:47:03.361996
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/46/image_06042025_22_46_02_1285.jpg', 2), ('/home/pi/Desktop/images/06042025/22/45/image_06042025_22_45_02_1620.jpg', 2), ('/home/pi/Desktop/images/06042025/04/27/image_06042025_04_27_01_2465.jpg', 2), ('/home/pi/Desktop/images/06042025/04/26/image_06042025_04_26_01_9638.jpg', 2), ('/home/pi/Desktop/images/06042025/04/22/image_06042025_04_22_02_1282.jpg', 2), ('/home/pi/Desktop/images/06042025/04/21/image_06042025_04_21_01_9415.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/46/image_06042025_22_46_02_1285.jpg', '/home/pi/Desktop/images/06042025/22/45/image_06042025_22_45_02_1620.jpg', '/home/pi/Desktop/images/06042025/04/27/image_06042025_04_27_01_2465.jpg', '/home/pi/Desktop/images/06042025/04/26/image_06042025_04_26_01_9638.jpg', '/home/pi/Desktop/images/06042025/04/22/image_06042025_04_22_02_1282.jpg', '/home/pi/Desktop/images/06042025/04/21/image_06042025_04_21_01_9415.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/46/image_06042025_22_46_02_1285.jpg
/home/pi/Desktop/images/06042025/22/45/image_06042025_22_45_02_1620.jpg
/home/pi/Desktop/images/06042025/04/27/image_06042025_04_27_01_2465.jpg
/home/pi/Desktop/images/06042025/04/26/image_06042025_04_26_01_9638.jpg
/home/pi/Desktop/images/06042025/04/22/image_06042025_04_22_02_1282.jpg
/home/pi/Desktop/images/06042025/04/21/image_06042025_04_21_01_9415.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196499","1350196463","1350196472","1350196489","1350196459","1350196516"],"photo_ids_order":["1350196459","1350196463","1350196472","1350196489","1350196499","1350196516"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/01d2e5aedd59a10577839cb272754479.jpg","text":"TemporaryFile(/tmp/multipartBody6168261447906932437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972487566,"filename":"image_06042025_04_22_02_1282.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8053aa1b7a2b62399314b648abef8cee.jpg","text":"TemporaryFile(/tmp/multipartBody4366247135674207049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972487566,"filename":"image_06042025_22_45_02_1620.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b8b4632980c25ec9c4b505ac9384c698.jpg","text":"TemporaryFile(/tmp/multipartBody2003745724257381582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972487566,"filename":"image_06042025_04_27_01_2465.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d2eaf2634c0e6674e1ea6299d4afe695.jpg","text":"TemporaryFile(/tmp/multipartBody6243309368499898434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972487566,"filename":"image_06042025_04_26_01_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/1856cc51a30f9e2b5282ea95e421cf3c.jpg","text":"TemporaryFile(/tmp/multipartBody6505812333683911824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972487566,"filename":"image_06042025_22_46_02_1285.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/59d1a08605f7c75b3f4fc280d507cac4.jpg","text":"TemporaryFile(/tmp/multipartBody5035774073538492652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972487566,"filename":"image_06042025_04_21_01_9415.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196472","file1":"1350196463","file0":"1350196459","file4":"1350196499","file5":"1350196516","file3":"1350196489"},"map_files_photo_id_array":[{"photo_id":"1350196516","filename":"file5"},{"photo_id":"1350196472","filename":"file2"},{"photo_id":"1350196499","filename":"file4"},{"photo_id":"1350196463","filename":"file1"},{"photo_id":"1350196459","filename":"file0"},{"photo_id":"1350196489","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196499":["hashtag1","hashtag2"]},{"1350196463":["hashtag1","hashtag2"]},{"1350196472":["hashtag1","hashtag2"]},{"1350196489":["hashtag1","hashtag2"]},{"1350196459":["hashtag1","hashtag2"]},{"1350196516":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196499, 1350196463, 1350196472, 1350196489, 1350196459, 1350196516)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.81190252304077 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:49:03.436001
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/48/image_06042025_22_48_01_6074.jpg', 2), ('/home/pi/Desktop/images/06042025/22/47/image_06042025_22_47_01_6541.jpg', 2), ('/home/pi/Desktop/images/06042025/04/20/image_06042025_04_20_01_6786.jpg', 2), ('/home/pi/Desktop/images/06042025/04/09/image_06042025_04_09_01_2420.jpg', 2), ('/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', 2), ('/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/48/image_06042025_22_48_01_6074.jpg', '/home/pi/Desktop/images/06042025/22/47/image_06042025_22_47_01_6541.jpg', '/home/pi/Desktop/images/06042025/04/20/image_06042025_04_20_01_6786.jpg', '/home/pi/Desktop/images/06042025/04/09/image_06042025_04_09_01_2420.jpg', '/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg', '/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/48/image_06042025_22_48_01_6074.jpg
/home/pi/Desktop/images/06042025/22/47/image_06042025_22_47_01_6541.jpg
/home/pi/Desktop/images/06042025/04/20/image_06042025_04_20_01_6786.jpg
/home/pi/Desktop/images/06042025/04/09/image_06042025_04_09_01_2420.jpg
/home/pi/Desktop/images/06042025/04/08/image_06042025_04_08_01_5394.jpg
/home/pi/Desktop/images/06042025/04/07/image_06042025_04_07_01_2981.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196605","1350196589","1350196580","1350196583","1350196616","1350196585"],"photo_ids_order":["1350196580","1350196583","1350196585","1350196589","1350196605","1350196616"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4d054ee4f66fc8855634c4ab488a359b.jpg","text":"TemporaryFile(/tmp/multipartBody977878620802359431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972607605,"filename":"image_06042025_04_08_01_5394.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5c833738b0431e667d8776f3abc83323.jpg","text":"TemporaryFile(/tmp/multipartBody5308885981999585247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972607605,"filename":"image_06042025_04_09_01_2420.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b31c61a2fe3cfb113b3ddc144c81ec26.jpg","text":"TemporaryFile(/tmp/multipartBody4718111468422109220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972607605,"filename":"image_06042025_22_48_01_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e4ea0fc469bd0e9ea68f5b7b95483dbf.jpg","text":"TemporaryFile(/tmp/multipartBody1050041664052813440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972607605,"filename":"image_06042025_22_47_01_6541.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f2185d285239ce649081666f4f6585ad.jpg","text":"TemporaryFile(/tmp/multipartBody1993029889213626149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972607605,"filename":"image_06042025_04_07_01_2981.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/84705cdc4dab7fe47b693819cffd6ef0.jpg","text":"TemporaryFile(/tmp/multipartBody6872824849723420406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972607605,"filename":"image_06042025_04_20_01_6786.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196585","file1":"1350196583","file0":"1350196580","file4":"1350196605","file5":"1350196616","file3":"1350196589"},"map_files_photo_id_array":[{"photo_id":"1350196616","filename":"file5"},{"photo_id":"1350196585","filename":"file2"},{"photo_id":"1350196605","filename":"file4"},{"photo_id":"1350196583","filename":"file1"},{"photo_id":"1350196580","filename":"file0"},{"photo_id":"1350196589","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196605":["hashtag1","hashtag2"]},{"1350196589":["hashtag1","hashtag2"]},{"1350196580":["hashtag1","hashtag2"]},{"1350196583":["hashtag1","hashtag2"]},{"1350196616":["hashtag1","hashtag2"]},{"1350196585":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196605, 1350196589, 1350196580, 1350196583, 1350196616, 1350196585)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.61463522911072 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:51:03.264175
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/50/image_06042025_22_50_01_5588.jpg', 2), ('/home/pi/Desktop/images/06042025/22/49/image_06042025_22_49_01_6280.jpg', 2), ('/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', 2), ('/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg', 2), ('/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', 2), ('/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/50/image_06042025_22_50_01_5588.jpg', '/home/pi/Desktop/images/06042025/22/49/image_06042025_22_49_01_6280.jpg', '/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg', '/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg', '/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg', '/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/50/image_06042025_22_50_01_5588.jpg
/home/pi/Desktop/images/06042025/22/49/image_06042025_22_49_01_6280.jpg
/home/pi/Desktop/images/06042025/04/06/image_06042025_04_06_02_0382.jpg
/home/pi/Desktop/images/06042025/04/05/image_06042025_04_05_01_4782.jpg
/home/pi/Desktop/images/06042025/04/04/image_06042025_04_04_02_1438.jpg
/home/pi/Desktop/images/06042025/03/58/image_06042025_03_58_01_7689.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196688","1350196712","1350196706","1350196699","1350196684","1350196695"],"photo_ids_order":["1350196684","1350196688","1350196695","1350196699","1350196706","1350196712"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3607d7a68d68f48e31bea585090590f5.jpg","text":"TemporaryFile(/tmp/multipartBody4741602341235260747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972727417,"filename":"image_06042025_22_49_01_6280.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c61de5b22c9f41121342366f54f81bdf.jpg","text":"TemporaryFile(/tmp/multipartBody876970186589938493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972727417,"filename":"image_06042025_03_58_01_7689.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/72fef6193692e20f6acd9f0024d44beb.jpg","text":"TemporaryFile(/tmp/multipartBody6312938382040325810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972727417,"filename":"image_06042025_04_04_02_1438.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3ace7ab85c98df8874604cf1a747840d.jpg","text":"TemporaryFile(/tmp/multipartBody8554432045312868499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972727417,"filename":"image_06042025_04_05_01_4782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/13d983ee28d39ced0d1b149984e6caba.jpg","text":"TemporaryFile(/tmp/multipartBody1654915180246819393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972727417,"filename":"image_06042025_22_50_01_5588.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25de0d5e15d90fea22d547783636c0b6.jpg","text":"TemporaryFile(/tmp/multipartBody7304963050562961626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972727417,"filename":"image_06042025_04_06_02_0382.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196695","file1":"1350196688","file0":"1350196684","file4":"1350196706","file5":"1350196712","file3":"1350196699"},"map_files_photo_id_array":[{"photo_id":"1350196712","filename":"file5"},{"photo_id":"1350196695","filename":"file2"},{"photo_id":"1350196706","filename":"file4"},{"photo_id":"1350196688","filename":"file1"},{"photo_id":"1350196684","filename":"file0"},{"photo_id":"1350196699","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196688":["hashtag1","hashtag2"]},{"1350196712":["hashtag1","hashtag2"]},{"1350196706":["hashtag1","hashtag2"]},{"1350196699":["hashtag1","hashtag2"]},{"1350196684":["hashtag1","hashtag2"]},{"1350196695":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196688, 1350196712, 1350196706, 1350196699, 1350196684, 1350196695)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.85343551635742 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:53:03.392218
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/22/51/image_06042025_22_51_01_4180.jpg', 2), ('/home/pi/Desktop/images/06042025/03/57/image_06042025_03_57_01_6838.jpg', 2), ('/home/pi/Desktop/images/06042025/03/56/image_06042025_03_56_01_4348.jpg', 2), ('/home/pi/Desktop/images/06042025/03/54/image_06042025_03_54_01_4883.jpg', 2), ('/home/pi/Desktop/images/06042025/03/53/image_06042025_03_53_01_4275.jpg', 2), ('/home/pi/Desktop/images/06042025/03/52/image_06042025_03_52_02_0792.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/22/51/image_06042025_22_51_01_4180.jpg', '/home/pi/Desktop/images/06042025/03/57/image_06042025_03_57_01_6838.jpg', '/home/pi/Desktop/images/06042025/03/56/image_06042025_03_56_01_4348.jpg', '/home/pi/Desktop/images/06042025/03/54/image_06042025_03_54_01_4883.jpg', '/home/pi/Desktop/images/06042025/03/53/image_06042025_03_53_01_4275.jpg', '/home/pi/Desktop/images/06042025/03/52/image_06042025_03_52_02_0792.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/22/51/image_06042025_22_51_01_4180.jpg
/home/pi/Desktop/images/06042025/03/57/image_06042025_03_57_01_6838.jpg
/home/pi/Desktop/images/06042025/03/56/image_06042025_03_56_01_4348.jpg
/home/pi/Desktop/images/06042025/03/54/image_06042025_03_54_01_4883.jpg
/home/pi/Desktop/images/06042025/03/53/image_06042025_03_53_01_4275.jpg
/home/pi/Desktop/images/06042025/03/52/image_06042025_03_52_02_0792.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196920","1350196931","1350196996","1350196876","1350197043","1350196947"],"photo_ids_order":["1350196876","1350196920","1350196931","1350196947","1350196996","1350197043"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be89170c43e9e77c6a6a275fc685eb04.jpg","text":"TemporaryFile(/tmp/multipartBody1155921244424656649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972847693,"filename":"image_06042025_03_57_01_6838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/48fad72a6806ea2498eb0323ea2115b4.jpg","text":"TemporaryFile(/tmp/multipartBody1122645467481601902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972847693,"filename":"image_06042025_03_56_01_4348.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8410e2ef3ae4d8e1f5bc5c2f26a5e8d.jpg","text":"TemporaryFile(/tmp/multipartBody7779178823303057919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972847693,"filename":"image_06042025_03_53_01_4275.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9ac4ed6f1270da05d6a60881e0166d84.jpg","text":"TemporaryFile(/tmp/multipartBody7924541860169028442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972847693,"filename":"image_06042025_22_51_01_4180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8c4a6c50390208a9252e5d0cd50b69bb.jpg","text":"TemporaryFile(/tmp/multipartBody230167890910830342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972847693,"filename":"image_06042025_03_52_02_0792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/37fe80f730cd1e797ba11674a13eb3a8.jpg","text":"TemporaryFile(/tmp/multipartBody8784524047528709473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972847693,"filename":"image_06042025_03_54_01_4883.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196931","file1":"1350196920","file0":"1350196876","file4":"1350196996","file5":"1350197043","file3":"1350196947"},"map_files_photo_id_array":[{"photo_id":"1350197043","filename":"file5"},{"photo_id":"1350196931","filename":"file2"},{"photo_id":"1350196996","filename":"file4"},{"photo_id":"1350196920","filename":"file1"},{"photo_id":"1350196876","filename":"file0"},{"photo_id":"1350196947","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350196920":["hashtag1","hashtag2"]},{"1350196931":["hashtag1","hashtag2"]},{"1350196996":["hashtag1","hashtag2"]},{"1350196876":["hashtag1","hashtag2"]},{"1350197043":["hashtag1","hashtag2"]},{"1350196947":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350196920, 1350196931, 1350196996, 1350196876, 1350197043, 1350196947)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.78110027313232 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:55:04.069480
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg', 2), ('/home/pi/Desktop/images/06042025/03/48/image_06042025_03_48_02_1409.jpg', 2), ('/home/pi/Desktop/images/06042025/03/40/image_06042025_03_40_01_3017.jpg', 2), ('/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', 2), ('/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg', '/home/pi/Desktop/images/06042025/03/48/image_06042025_03_48_02_1409.jpg', '/home/pi/Desktop/images/06042025/03/40/image_06042025_03_40_01_3017.jpg', '/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg', '/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg', '/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/03/51/image_06042025_03_51_01_7136.jpg
/home/pi/Desktop/images/06042025/03/48/image_06042025_03_48_02_1409.jpg
/home/pi/Desktop/images/06042025/03/40/image_06042025_03_40_01_3017.jpg
/home/pi/Desktop/images/06042025/03/37/image_06042025_03_37_02_0888.jpg
/home/pi/Desktop/images/06042025/03/34/image_06042025_03_34_01_5979.jpg
/home/pi/Desktop/images/06042025/03/33/image_06042025_03_33_01_4560.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197176","1350197191","1350197185","1350197215","1350197172","1350197181"],"photo_ids_order":["1350197172","1350197176","1350197181","1350197185","1350197191","1350197215"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec0706d6f08764ea722ab3b202c15cdb.jpg","text":"TemporaryFile(/tmp/multipartBody2500837638631643238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972972947,"filename":"image_06042025_03_48_02_1409.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f9170f081d6fc112b031d8bdd75209a4.jpg","text":"TemporaryFile(/tmp/multipartBody1552315037475073817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972972947,"filename":"image_06042025_03_34_01_5979.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9a5492ab49cc985bb6d7ec23c3b9d794.jpg","text":"TemporaryFile(/tmp/multipartBody2799694338526199689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972972947,"filename":"image_06042025_03_37_02_0888.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/691f32c349a04e18e707efe86cfc2557.jpg","text":"TemporaryFile(/tmp/multipartBody6692028832584246897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972972947,"filename":"image_06042025_03_33_01_4560.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/70568082c37d71c3f4bbc14b45a7faf5.jpg","text":"TemporaryFile(/tmp/multipartBody3414825775285160442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972972947,"filename":"image_06042025_03_51_01_7136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8cc6c0c1fe4dfee352002a6827b0e39.jpg","text":"TemporaryFile(/tmp/multipartBody6638736895061765305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972972947,"filename":"image_06042025_03_40_01_3017.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197181","file1":"1350197176","file0":"1350197172","file4":"1350197191","file5":"1350197215","file3":"1350197185"},"map_files_photo_id_array":[{"photo_id":"1350197215","filename":"file5"},{"photo_id":"1350197181","filename":"file2"},{"photo_id":"1350197191","filename":"file4"},{"photo_id":"1350197176","filename":"file1"},{"photo_id":"1350197172","filename":"file0"},{"photo_id":"1350197185","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350197176":["hashtag1","hashtag2"]},{"1350197191":["hashtag1","hashtag2"]},{"1350197185":["hashtag1","hashtag2"]},{"1350197215":["hashtag1","hashtag2"]},{"1350197172":["hashtag1","hashtag2"]},{"1350197181":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350197176, 1350197191, 1350197185, 1350197215, 1350197172, 1350197181)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.91551542282104 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:57:03.718686
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2), ('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2), ('/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', 2), ('/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg', 2), ('/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', '/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', '/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', '/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', '/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg', '/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg
/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg
/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg
/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg
/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg
/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 22:59:03.199367
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', 2), ('/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', 2), ('/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', 2), ('/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', 2), ('/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg', 2), ('/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg', '/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg', '/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg', '/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg', '/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg', '/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/03/32/image_06042025_03_32_02_2419.jpg
/home/pi/Desktop/images/06042025/03/31/image_06042025_03_31_02_1636.jpg
/home/pi/Desktop/images/06042025/03/28/image_06042025_03_28_01_2581.jpg
/home/pi/Desktop/images/06042025/03/27/image_06042025_03_27_01_9363.jpg
/home/pi/Desktop/images/06042025/03/26/image_06042025_03_26_01_6480.jpg
/home/pi/Desktop/images/06042025/03/11/image_06042025_03_11_01_7434.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197555","1350197579","1350197533","1350197520","1350197508","1350197538"],"photo_ids_order":["1350197508","1350197520","1350197533","1350197538","1350197555","1350197579"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/745e3329c0881bd8e48ff99792246fbb.jpg","text":"TemporaryFile(/tmp/multipartBody1694038418761761749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206444,"filename":"image_06042025_03_26_01_6480.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/88e61a8a56265ad668ba636645ad65c2.jpg","text":"TemporaryFile(/tmp/multipartBody7116628716512081859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206444,"filename":"image_06042025_03_11_01_7434.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6585f640168f6399d2040c8a4613b67d.jpg","text":"TemporaryFile(/tmp/multipartBody506750025080093702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206444,"filename":"image_06042025_03_28_01_2581.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c16a3587091cef7a3a269046febe6fb4.jpg","text":"TemporaryFile(/tmp/multipartBody85720744044293574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206444,"filename":"image_06042025_03_31_02_1636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dcbcfb7c1f0e88c608efaca17a3390f3.jpg","text":"TemporaryFile(/tmp/multipartBody89464083570160464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206444,"filename":"image_06042025_03_32_02_2419.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3de3403687e86faabd86b5254f42cbc0.jpg","text":"TemporaryFile(/tmp/multipartBody969417168328793123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206444,"filename":"image_06042025_03_27_01_9363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197533","file1":"1350197520","file0":"1350197508","file4":"1350197555","file5":"1350197579","file3":"1350197538"},"map_files_photo_id_array":[{"photo_id":"1350197579","filename":"file5"},{"photo_id":"1350197533","filename":"file2"},{"photo_id":"1350197555","filename":"file4"},{"photo_id":"1350197520","filename":"file1"},{"photo_id":"1350197508","filename":"file0"},{"photo_id":"1350197538","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350197555":["hashtag1","hashtag2"]},{"1350197579":["hashtag1","hashtag2"]},{"1350197533":["hashtag1","hashtag2"]},{"1350197520":["hashtag1","hashtag2"]},{"1350197508":["hashtag1","hashtag2"]},{"1350197538":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350197555, 1350197579, 1350197533, 1350197520, 1350197508, 1350197538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.1278965473175 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:01:03.212414
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/00/image_06042025_23_00_01_4682.jpg', 2), ('/home/pi/Desktop/images/06042025/22/52/image_06042025_22_52_01_3407.jpg', 2), ('/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', 2), ('/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', 2), ('/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', 2), ('/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/00/image_06042025_23_00_01_4682.jpg', '/home/pi/Desktop/images/06042025/22/52/image_06042025_22_52_01_3407.jpg', '/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg', '/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg', '/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg', '/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/00/image_06042025_23_00_01_4682.jpg
/home/pi/Desktop/images/06042025/22/52/image_06042025_22_52_01_3407.jpg
/home/pi/Desktop/images/06042025/03/10/image_06042025_03_10_01_5046.jpg
/home/pi/Desktop/images/06042025/03/09/image_06042025_03_09_01_4069.jpg
/home/pi/Desktop/images/06042025/03/08/image_06042025_03_08_02_0901.jpg
/home/pi/Desktop/images/06042025/03/07/image_06042025_03_07_01_2595.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197713","1350197710","1350197704","1350197658","1350197652","1350197649"],"photo_ids_order":["1350197649","1350197652","1350197658","1350197704","1350197710","1350197713"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d7166b2cdcc7703388cbb5a4a55ae515.jpg","text":"TemporaryFile(/tmp/multipartBody4132114290522102546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973327319,"filename":"image_06042025_03_07_01_2595.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/97f76cbfca72a359ce8d0760380e664b.jpg","text":"TemporaryFile(/tmp/multipartBody6966209622600997726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973327319,"filename":"image_06042025_03_08_02_0901.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c81b7a53e102c486a018b4f0bf6f5b89.jpg","text":"TemporaryFile(/tmp/multipartBody814140496060036618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973327319,"filename":"image_06042025_03_09_01_4069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8a8090d38d48a1460972f127f87bd275.jpg","text":"TemporaryFile(/tmp/multipartBody2578031891832231860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973327319,"filename":"image_06042025_03_10_01_5046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e611d06fe458c2da2613c7ae1f7e1e07.jpg","text":"TemporaryFile(/tmp/multipartBody3146546588594748303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973327319,"filename":"image_06042025_22_52_01_3407.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d8ca8ebcdf57f33c0d4def8ace9f445.jpg","text":"TemporaryFile(/tmp/multipartBody4979634193856328707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973327319,"filename":"image_06042025_23_00_01_4682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197658","file1":"1350197652","file0":"1350197649","file4":"1350197710","file5":"1350197713","file3":"1350197704"},"map_files_photo_id_array":[{"photo_id":"1350197713","filename":"file5"},{"photo_id":"1350197658","filename":"file2"},{"photo_id":"1350197710","filename":"file4"},{"photo_id":"1350197652","filename":"file1"},{"photo_id":"1350197649","filename":"file0"},{"photo_id":"1350197704","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350197713":["hashtag1","hashtag2"]},{"1350197710":["hashtag1","hashtag2"]},{"1350197704":["hashtag1","hashtag2"]},{"1350197658":["hashtag1","hashtag2"]},{"1350197652":["hashtag1","hashtag2"]},{"1350197649":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350197713, 1350197710, 1350197704, 1350197658, 1350197652, 1350197649)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.651528120040894 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:03:04.096380
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', 2), ('/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', 2), ('/home/pi/Desktop/images/06042025/03/01/image_06042025_03_01_02_0566.jpg', 2), ('/home/pi/Desktop/images/06042025/02/54/image_06042025_02_54_02_0949.jpg', 2), ('/home/pi/Desktop/images/06042025/02/51/image_06042025_02_51_01_4817.jpg', 2), ('/home/pi/Desktop/images/06042025/02/45/image_06042025_02_45_01_5991.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg', '/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg', '/home/pi/Desktop/images/06042025/03/01/image_06042025_03_01_02_0566.jpg', '/home/pi/Desktop/images/06042025/02/54/image_06042025_02_54_02_0949.jpg', '/home/pi/Desktop/images/06042025/02/51/image_06042025_02_51_01_4817.jpg', '/home/pi/Desktop/images/06042025/02/45/image_06042025_02_45_01_5991.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/03/06/image_06042025_03_06_01_6856.jpg
/home/pi/Desktop/images/06042025/03/05/image_06042025_03_05_01_7639.jpg
/home/pi/Desktop/images/06042025/03/01/image_06042025_03_01_02_0566.jpg
/home/pi/Desktop/images/06042025/02/54/image_06042025_02_54_02_0949.jpg
/home/pi/Desktop/images/06042025/02/51/image_06042025_02_51_01_4817.jpg
/home/pi/Desktop/images/06042025/02/45/image_06042025_02_45_01_5991.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197816","1350197821","1350197803","1350197796","1350197823","1350197808"],"photo_ids_order":["1350197796","1350197803","1350197808","1350197816","1350197821","1350197823"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f0948078b00a80c826720ea26000cd63.jpg","text":"TemporaryFile(/tmp/multipartBody4400213592617033002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973448886,"filename":"image_06042025_02_54_02_0949.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1c957cf4fa3699b371ec874d6f2de05e.jpg","text":"TemporaryFile(/tmp/multipartBody8923367808063880097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973448886,"filename":"image_06042025_02_51_01_4817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8f659e33ee48eafa726a50d9da644999.jpg","text":"TemporaryFile(/tmp/multipartBody9127675075299694323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973448886,"filename":"image_06042025_03_05_01_7639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2bebc9a52cf4699820649bafd9e357c8.jpg","text":"TemporaryFile(/tmp/multipartBody2370903663857170248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973448886,"filename":"image_06042025_03_06_01_6856.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/571fb7e11f4e58b5e687b1b6bc96f43a.jpg","text":"TemporaryFile(/tmp/multipartBody5946658169760732012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973448886,"filename":"image_06042025_02_45_01_5991.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e52f604387e67030ad4a387b10bb57be.jpg","text":"TemporaryFile(/tmp/multipartBody2214140241934506539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973448886,"filename":"image_06042025_03_01_02_0566.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197808","file1":"1350197803","file0":"1350197796","file4":"1350197821","file5":"1350197823","file3":"1350197816"},"map_files_photo_id_array":[{"photo_id":"1350197823","filename":"file5"},{"photo_id":"1350197808","filename":"file2"},{"photo_id":"1350197821","filename":"file4"},{"photo_id":"1350197803","filename":"file1"},{"photo_id":"1350197796","filename":"file0"},{"photo_id":"1350197816","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350197816":["hashtag1","hashtag2"]},{"1350197821":["hashtag1","hashtag2"]},{"1350197803":["hashtag1","hashtag2"]},{"1350197796":["hashtag1","hashtag2"]},{"1350197823":["hashtag1","hashtag2"]},{"1350197808":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350197816, 1350197821, 1350197803, 1350197796, 1350197823, 1350197808)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.12378287315369 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:05:04.046266
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', 2), ('/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', 2), ('/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', 2), ('/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg', 2), ('/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg', 2), ('/home/pi/Desktop/images/06042025/02/39/image_06042025_02_39_01_3614.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg', '/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg', '/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg', '/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg', '/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg', '/home/pi/Desktop/images/06042025/02/39/image_06042025_02_39_01_3614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/02/44/image_06042025_02_44_02_0877.jpg
/home/pi/Desktop/images/06042025/02/43/image_06042025_02_43_02_1181.jpg
/home/pi/Desktop/images/06042025/02/42/image_06042025_02_42_01_7466.jpg
/home/pi/Desktop/images/06042025/02/41/image_06042025_02_41_01_7900.jpg
/home/pi/Desktop/images/06042025/02/40/image_06042025_02_40_01_6782.jpg
/home/pi/Desktop/images/06042025/02/39/image_06042025_02_39_01_3614.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198011","1350197985","1350197970","1350198024","1350197982","1350197978"],"photo_ids_order":["1350197970","1350197978","1350197982","1350197985","1350198011","1350198024"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/870056eaa67076763eb8856a4a4f6aed.jpg","text":"TemporaryFile(/tmp/multipartBody5703001945017744916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973568747,"filename":"image_06042025_02_40_01_6782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1d04cdadf19358a80582bb2ecfebad8b.jpg","text":"TemporaryFile(/tmp/multipartBody1269097995257449086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973568747,"filename":"image_06042025_02_41_01_7900.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e7aaa5ad0e9d595fac07ba768a01def0.jpg","text":"TemporaryFile(/tmp/multipartBody9120921382690711436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973568747,"filename":"image_06042025_02_44_02_0877.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33e9efb912d62c070873f1eeb286d01d.jpg","text":"TemporaryFile(/tmp/multipartBody7481661764989811734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973568747,"filename":"image_06042025_02_39_01_3614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a239ccb5be314eaf50b3066768c2bb74.jpg","text":"TemporaryFile(/tmp/multipartBody6289077283762979381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973568747,"filename":"image_06042025_02_42_01_7466.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f1db79155314d8b9777591bee8899326.jpg","text":"TemporaryFile(/tmp/multipartBody5660812275158598981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973568747,"filename":"image_06042025_02_43_02_1181.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197982","file1":"1350197978","file0":"1350197970","file4":"1350198011","file5":"1350198024","file3":"1350197985"},"map_files_photo_id_array":[{"photo_id":"1350198024","filename":"file5"},{"photo_id":"1350197982","filename":"file2"},{"photo_id":"1350198011","filename":"file4"},{"photo_id":"1350197978","filename":"file1"},{"photo_id":"1350197970","filename":"file0"},{"photo_id":"1350197985","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350198011":["hashtag1","hashtag2"]},{"1350197985":["hashtag1","hashtag2"]},{"1350197970":["hashtag1","hashtag2"]},{"1350198024":["hashtag1","hashtag2"]},{"1350197982":["hashtag1","hashtag2"]},{"1350197978":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350198011, 1350197985, 1350197970, 1350198024, 1350197982, 1350197978)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.9794430732727 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:07:03.659705
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/02/30/image_06042025_02_30_01_8231.jpg', 2), ('/home/pi/Desktop/images/06042025/02/29/image_06042025_02_29_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg', 2), ('/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg', 2), ('/home/pi/Desktop/images/06042025/02/21/image_06042025_02_21_01_8025.jpg', 2), ('/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/02/30/image_06042025_02_30_01_8231.jpg', '/home/pi/Desktop/images/06042025/02/29/image_06042025_02_29_01_5821.jpg', '/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg', '/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg', '/home/pi/Desktop/images/06042025/02/21/image_06042025_02_21_01_8025.jpg', '/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/02/30/image_06042025_02_30_01_8231.jpg
/home/pi/Desktop/images/06042025/02/29/image_06042025_02_29_01_5821.jpg
/home/pi/Desktop/images/06042025/02/28/image_06042025_02_28_02_1224.jpg
/home/pi/Desktop/images/06042025/02/27/image_06042025_02_27_02_1064.jpg
/home/pi/Desktop/images/06042025/02/21/image_06042025_02_21_01_8025.jpg
/home/pi/Desktop/images/06042025/02/20/image_06042025_02_20_02_2386.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198215","1350198364","1350198361","1350198426","1350198429","1350198306"],"photo_ids_order":["1350198215","1350198306","1350198361","1350198364","1350198426","1350198429"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d9ac9d532881e41e0fe886b841319884.jpg","text":"TemporaryFile(/tmp/multipartBody2277342958015774840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973688263,"filename":"image_06042025_02_30_01_8231.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e86f473d58992cd9ef467124c02d3c93.jpg","text":"TemporaryFile(/tmp/multipartBody4378995132641994035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973688263,"filename":"image_06042025_02_27_02_1064.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9faf323e56736034fa9bf95f1433147d.jpg","text":"TemporaryFile(/tmp/multipartBody867895065146510193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973688263,"filename":"image_06042025_02_28_02_1224.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4183d791d32a6fa7a3924d42f7cea69e.jpg","text":"TemporaryFile(/tmp/multipartBody3656209264773690470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973688263,"filename":"image_06042025_02_21_01_8025.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b3f21fda20d26c07c3af41467c24240b.jpg","text":"TemporaryFile(/tmp/multipartBody3210966468266131194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973688263,"filename":"image_06042025_02_20_02_2386.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0516ff1bcb64d9c9a240a083d90ac5de.jpg","text":"TemporaryFile(/tmp/multipartBody1712790762743612916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973688263,"filename":"image_06042025_02_29_01_5821.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198361","file1":"1350198306","file0":"1350198215","file4":"1350198426","file5":"1350198429","file3":"1350198364"},"map_files_photo_id_array":[{"photo_id":"1350198429","filename":"file5"},{"photo_id":"1350198361","filename":"file2"},{"photo_id":"1350198426","filename":"file4"},{"photo_id":"1350198306","filename":"file1"},{"photo_id":"1350198215","filename":"file0"},{"photo_id":"1350198364","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350198215":["hashtag1","hashtag2"]},{"1350198364":["hashtag1","hashtag2"]},{"1350198361":["hashtag1","hashtag2"]},{"1350198426":["hashtag1","hashtag2"]},{"1350198429":["hashtag1","hashtag2"]},{"1350198306":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350198215, 1350198364, 1350198361, 1350198426, 1350198429, 1350198306)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.08716464042664 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:09:03.661288
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/08/image_06042025_23_08_01_9903.jpg', 2), ('/home/pi/Desktop/images/06042025/23/01/image_06042025_23_01_01_6951.jpg', 2), ('/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', 2), ('/home/pi/Desktop/images/06042025/02/15/image_06042025_02_15_02_0830.jpg', 2), ('/home/pi/Desktop/images/06042025/02/14/image_06042025_02_14_01_8848.jpg', 2), ('/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/08/image_06042025_23_08_01_9903.jpg', '/home/pi/Desktop/images/06042025/23/01/image_06042025_23_01_01_6951.jpg', '/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg', '/home/pi/Desktop/images/06042025/02/15/image_06042025_02_15_02_0830.jpg', '/home/pi/Desktop/images/06042025/02/14/image_06042025_02_14_01_8848.jpg', '/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/08/image_06042025_23_08_01_9903.jpg
/home/pi/Desktop/images/06042025/23/01/image_06042025_23_01_01_6951.jpg
/home/pi/Desktop/images/06042025/02/18/image_06042025_02_18_01_5370.jpg
/home/pi/Desktop/images/06042025/02/15/image_06042025_02_15_02_0830.jpg
/home/pi/Desktop/images/06042025/02/14/image_06042025_02_14_01_8848.jpg
/home/pi/Desktop/images/06042025/02/13/image_06042025_02_13_02_0088.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198545","1350198503","1350198538","1350198511","1350198549","1350198516"],"photo_ids_order":["1350198503","1350198511","1350198516","1350198538","1350198545","1350198549"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ac672b2be1d629eebff8558d9f581380.jpg","text":"TemporaryFile(/tmp/multipartBody8160869567347769305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807739,"filename":"image_06042025_02_14_01_8848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff1ffb71b92b04ff40eaa963f323d2fd.jpg","text":"TemporaryFile(/tmp/multipartBody8861408762018980768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807739,"filename":"image_06042025_23_08_01_9903.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/94e7659bf1fcd2f049a02e37cfbd9cbb.jpg","text":"TemporaryFile(/tmp/multipartBody2033378504395730395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807739,"filename":"image_06042025_02_15_02_0830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/10882b902f4867695edb0574afb86ac0.jpg","text":"TemporaryFile(/tmp/multipartBody5636676137731792694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807739,"filename":"image_06042025_23_01_01_6951.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/50e1202f46f209c295c7581ee3b68cdd.jpg","text":"TemporaryFile(/tmp/multipartBody5283456230909440698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807739,"filename":"image_06042025_02_13_02_0088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1b67da00385a96ea5feb39e968a1609c.jpg","text":"TemporaryFile(/tmp/multipartBody8751918212145934538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807739,"filename":"image_06042025_02_18_01_5370.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198516","file1":"1350198511","file0":"1350198503","file4":"1350198545","file5":"1350198549","file3":"1350198538"},"map_files_photo_id_array":[{"photo_id":"1350198549","filename":"file5"},{"photo_id":"1350198516","filename":"file2"},{"photo_id":"1350198545","filename":"file4"},{"photo_id":"1350198511","filename":"file1"},{"photo_id":"1350198503","filename":"file0"},{"photo_id":"1350198538","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350198545":["hashtag1","hashtag2"]},{"1350198503":["hashtag1","hashtag2"]},{"1350198538":["hashtag1","hashtag2"]},{"1350198511":["hashtag1","hashtag2"]},{"1350198549":["hashtag1","hashtag2"]},{"1350198516":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350198545, 1350198503, 1350198538, 1350198511, 1350198549, 1350198516)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.96523141860962 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:11:03.234365
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/10/image_06042025_23_10_01_8338.jpg', 2), ('/home/pi/Desktop/images/06042025/23/09/image_06042025_23_09_01_8334.jpg', 2), ('/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg', 2), ('/home/pi/Desktop/images/06042025/02/11/image_06042025_02_11_01_5086.jpg', 2), ('/home/pi/Desktop/images/06042025/02/10/image_06042025_02_10_01_9596.jpg', 2), ('/home/pi/Desktop/images/06042025/02/09/image_06042025_02_09_01_9768.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/10/image_06042025_23_10_01_8338.jpg', '/home/pi/Desktop/images/06042025/23/09/image_06042025_23_09_01_8334.jpg', '/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg', '/home/pi/Desktop/images/06042025/02/11/image_06042025_02_11_01_5086.jpg', '/home/pi/Desktop/images/06042025/02/10/image_06042025_02_10_01_9596.jpg', '/home/pi/Desktop/images/06042025/02/09/image_06042025_02_09_01_9768.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/10/image_06042025_23_10_01_8338.jpg
/home/pi/Desktop/images/06042025/23/09/image_06042025_23_09_01_8334.jpg
/home/pi/Desktop/images/06042025/02/12/image_06042025_02_12_01_6271.jpg
/home/pi/Desktop/images/06042025/02/11/image_06042025_02_11_01_5086.jpg
/home/pi/Desktop/images/06042025/02/10/image_06042025_02_10_01_9596.jpg
/home/pi/Desktop/images/06042025/02/09/image_06042025_02_09_01_9768.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198691","1350198709","1350198684","1350198666","1350198723","1350198702"],"photo_ids_order":["1350198666","1350198684","1350198691","1350198702","1350198709","1350198723"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a7f3afb68e8b41768510f0065eb80551.jpg","text":"TemporaryFile(/tmp/multipartBody8518501621143913807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973927278,"filename":"image_06042025_02_12_01_6271.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/64d37e01d612de36e4b2ae858a7c2145.jpg","text":"TemporaryFile(/tmp/multipartBody4738447827442325092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973927278,"filename":"image_06042025_02_10_01_9596.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/746b281222abe0ac58bb9f289e78bffd.jpg","text":"TemporaryFile(/tmp/multipartBody3504705899202709324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973927278,"filename":"image_06042025_23_09_01_8334.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c6e964a8d46b4d514e0b4b5d8a61558.jpg","text":"TemporaryFile(/tmp/multipartBody3198042745942258248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973927278,"filename":"image_06042025_23_10_01_8338.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e6b2c7f6b44d848008387b1de6ec2dc.jpg","text":"TemporaryFile(/tmp/multipartBody5744271825661315546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973927278,"filename":"image_06042025_02_09_01_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/c8ff356162bb7df6228faa92c57899b3.jpg","text":"TemporaryFile(/tmp/multipartBody1383564073529854633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973927278,"filename":"image_06042025_02_11_01_5086.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198691","file1":"1350198684","file0":"1350198666","file4":"1350198709","file5":"1350198723","file3":"1350198702"},"map_files_photo_id_array":[{"photo_id":"1350198723","filename":"file5"},{"photo_id":"1350198691","filename":"file2"},{"photo_id":"1350198709","filename":"file4"},{"photo_id":"1350198684","filename":"file1"},{"photo_id":"1350198666","filename":"file0"},{"photo_id":"1350198702","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350198691":["hashtag1","hashtag2"]},{"1350198709":["hashtag1","hashtag2"]},{"1350198684":["hashtag1","hashtag2"]},{"1350198666":["hashtag1","hashtag2"]},{"1350198723":["hashtag1","hashtag2"]},{"1350198702":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350198691, 1350198709, 1350198684, 1350198666, 1350198723, 1350198702)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.10539293289185 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:13:03.207227
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/12/image_06042025_23_12_01_5585.jpg', 2), ('/home/pi/Desktop/images/06042025/23/11/image_06042025_23_11_01_5300.jpg', 2), ('/home/pi/Desktop/images/06042025/02/08/image_06042025_02_08_01_5270.jpg', 2), ('/home/pi/Desktop/images/06042025/02/07/image_06042025_02_07_01_5681.jpg', 2), ('/home/pi/Desktop/images/06042025/02/06/image_06042025_02_06_01_6441.jpg', 2), ('/home/pi/Desktop/images/06042025/02/05/image_06042025_02_05_02_2501.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/12/image_06042025_23_12_01_5585.jpg', '/home/pi/Desktop/images/06042025/23/11/image_06042025_23_11_01_5300.jpg', '/home/pi/Desktop/images/06042025/02/08/image_06042025_02_08_01_5270.jpg', '/home/pi/Desktop/images/06042025/02/07/image_06042025_02_07_01_5681.jpg', '/home/pi/Desktop/images/06042025/02/06/image_06042025_02_06_01_6441.jpg', '/home/pi/Desktop/images/06042025/02/05/image_06042025_02_05_02_2501.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/12/image_06042025_23_12_01_5585.jpg
/home/pi/Desktop/images/06042025/23/11/image_06042025_23_11_01_5300.jpg
/home/pi/Desktop/images/06042025/02/08/image_06042025_02_08_01_5270.jpg
/home/pi/Desktop/images/06042025/02/07/image_06042025_02_07_01_5681.jpg
/home/pi/Desktop/images/06042025/02/06/image_06042025_02_06_01_6441.jpg
/home/pi/Desktop/images/06042025/02/05/image_06042025_02_05_02_2501.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198847","1350198870","1350198864","1350198858","1350198851","1350198848"],"photo_ids_order":["1350198847","1350198848","1350198851","1350198858","1350198864","1350198870"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec8967bc135c97ba6194b8f0505b5110.jpg","text":"TemporaryFile(/tmp/multipartBody338503228475110220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974047472,"filename":"image_06042025_23_12_01_5585.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1ec9229e03684467e243bb8410608f2c.jpg","text":"TemporaryFile(/tmp/multipartBody5567287876153745375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974047472,"filename":"image_06042025_02_05_02_2501.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/790d43925610d5364b8b1a821ba7a7b0.jpg","text":"TemporaryFile(/tmp/multipartBody687766836624176780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974047472,"filename":"image_06042025_02_06_01_6441.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/243a4c5c9dd76b71ae09a5c870cbf0e1.jpg","text":"TemporaryFile(/tmp/multipartBody5964744686686161028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974047472,"filename":"image_06042025_02_07_01_5681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/55f89e73aca997f542e19d9259ed73fa.jpg","text":"TemporaryFile(/tmp/multipartBody1499958073789928137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974047472,"filename":"image_06042025_02_08_01_5270.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ae7e233f9af32f8f6a28775bd033ca79.jpg","text":"TemporaryFile(/tmp/multipartBody1858123559085681392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974047472,"filename":"image_06042025_23_11_01_5300.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198851","file1":"1350198848","file0":"1350198847","file4":"1350198864","file5":"1350198870","file3":"1350198858"},"map_files_photo_id_array":[{"photo_id":"1350198870","filename":"file5"},{"photo_id":"1350198851","filename":"file2"},{"photo_id":"1350198864","filename":"file4"},{"photo_id":"1350198848","filename":"file1"},{"photo_id":"1350198847","filename":"file0"},{"photo_id":"1350198858","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350198847":["hashtag1","hashtag2"]},{"1350198870":["hashtag1","hashtag2"]},{"1350198864":["hashtag1","hashtag2"]},{"1350198858":["hashtag1","hashtag2"]},{"1350198851":["hashtag1","hashtag2"]},{"1350198848":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350198847, 1350198870, 1350198864, 1350198858, 1350198851, 1350198848)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.65623474121094 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:15:03.647338
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/13/image_06042025_23_13_01_4199.jpg', 2), ('/home/pi/Desktop/images/06042025/02/01/image_06042025_02_01_02_0888.jpg', 2), ('/home/pi/Desktop/images/06042025/01/59/image_06042025_01_59_02_0165.jpg', 2), ('/home/pi/Desktop/images/06042025/01/58/image_06042025_01_58_01_6426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/57/image_06042025_01_57_01_5190.jpg', 2), ('/home/pi/Desktop/images/06042025/01/56/image_06042025_01_56_01_2433.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/13/image_06042025_23_13_01_4199.jpg', '/home/pi/Desktop/images/06042025/02/01/image_06042025_02_01_02_0888.jpg', '/home/pi/Desktop/images/06042025/01/59/image_06042025_01_59_02_0165.jpg', '/home/pi/Desktop/images/06042025/01/58/image_06042025_01_58_01_6426.jpg', '/home/pi/Desktop/images/06042025/01/57/image_06042025_01_57_01_5190.jpg', '/home/pi/Desktop/images/06042025/01/56/image_06042025_01_56_01_2433.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/13/image_06042025_23_13_01_4199.jpg
/home/pi/Desktop/images/06042025/02/01/image_06042025_02_01_02_0888.jpg
/home/pi/Desktop/images/06042025/01/59/image_06042025_01_59_02_0165.jpg
/home/pi/Desktop/images/06042025/01/58/image_06042025_01_58_01_6426.jpg
/home/pi/Desktop/images/06042025/01/57/image_06042025_01_57_01_5190.jpg
/home/pi/Desktop/images/06042025/01/56/image_06042025_01_56_01_2433.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198991","1350198984","1350198921","1350198912","1350198977","1350198938"],"photo_ids_order":["1350198912","1350198921","1350198938","1350198977","1350198984","1350198991"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/65d244675ee97f1a9011aaab92e4f98b.jpg","text":"TemporaryFile(/tmp/multipartBody6323371824264274941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974168164,"filename":"image_06042025_01_56_01_2433.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff6d50e3e4dd30dba6f87a50154a0b0b.jpg","text":"TemporaryFile(/tmp/multipartBody6151753974553523659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974168164,"filename":"image_06042025_01_57_01_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f66ad1040505014a36bbb770e6a80395.jpg","text":"TemporaryFile(/tmp/multipartBody8948935707335404638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974168164,"filename":"image_06042025_02_01_02_0888.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/63a7fdd1a0c2f434bd6d56bd4ac49487.jpg","text":"TemporaryFile(/tmp/multipartBody3890174965060851298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974168164,"filename":"image_06042025_23_13_01_4199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b865ba782dd6e244aefa97a93720a415.jpg","text":"TemporaryFile(/tmp/multipartBody2527604065698955934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974168164,"filename":"image_06042025_01_58_01_6426.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/93264e72f39edcb86fb347a39f154fb0.jpg","text":"TemporaryFile(/tmp/multipartBody101780341103223322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974168164,"filename":"image_06042025_01_59_02_0165.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198938","file1":"1350198921","file0":"1350198912","file4":"1350198984","file5":"1350198991","file3":"1350198977"},"map_files_photo_id_array":[{"photo_id":"1350198991","filename":"file5"},{"photo_id":"1350198938","filename":"file2"},{"photo_id":"1350198984","filename":"file4"},{"photo_id":"1350198921","filename":"file1"},{"photo_id":"1350198912","filename":"file0"},{"photo_id":"1350198977","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350198991":["hashtag1","hashtag2"]},{"1350198984":["hashtag1","hashtag2"]},{"1350198921":["hashtag1","hashtag2"]},{"1350198912":["hashtag1","hashtag2"]},{"1350198977":["hashtag1","hashtag2"]},{"1350198938":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350198991, 1350198984, 1350198921, 1350198912, 1350198977, 1350198938)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 69.90828919410706 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:17:03.654721
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/15/image_06042025_23_15_01_9047.jpg', 2), ('/home/pi/Desktop/images/06042025/01/55/image_06042025_01_55_01_2588.jpg', 2), ('/home/pi/Desktop/images/06042025/01/54/image_06042025_01_54_01_8638.jpg', 2), ('/home/pi/Desktop/images/06042025/01/53/image_06042025_01_53_01_8270.jpg', 2), ('/home/pi/Desktop/images/06042025/01/51/image_06042025_01_51_01_8924.jpg', 2), ('/home/pi/Desktop/images/06042025/01/50/image_06042025_01_50_01_7344.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/15/image_06042025_23_15_01_9047.jpg', '/home/pi/Desktop/images/06042025/01/55/image_06042025_01_55_01_2588.jpg', '/home/pi/Desktop/images/06042025/01/54/image_06042025_01_54_01_8638.jpg', '/home/pi/Desktop/images/06042025/01/53/image_06042025_01_53_01_8270.jpg', '/home/pi/Desktop/images/06042025/01/51/image_06042025_01_51_01_8924.jpg', '/home/pi/Desktop/images/06042025/01/50/image_06042025_01_50_01_7344.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/15/image_06042025_23_15_01_9047.jpg
/home/pi/Desktop/images/06042025/01/55/image_06042025_01_55_01_2588.jpg
/home/pi/Desktop/images/06042025/01/54/image_06042025_01_54_01_8638.jpg
/home/pi/Desktop/images/06042025/01/53/image_06042025_01_53_01_8270.jpg
/home/pi/Desktop/images/06042025/01/51/image_06042025_01_51_01_8924.jpg
/home/pi/Desktop/images/06042025/01/50/image_06042025_01_50_01_7344.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199057","1350199042","1350199015","1350199018","1350199074","1350199032"],"photo_ids_order":["1350199015","1350199018","1350199032","1350199042","1350199057","1350199074"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a674cb7a98dddb8e92b60f0ac34b3e7b.jpg","text":"TemporaryFile(/tmp/multipartBody7898295689943672572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974288619,"filename":"image_06042025_01_51_01_8924.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/63a66c08ae8776a47e29b1403b69c367.jpg","text":"TemporaryFile(/tmp/multipartBody131203853859259491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974288619,"filename":"image_06042025_01_53_01_8270.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2494e94ca91df3ce30bd52928c4dae7b.jpg","text":"TemporaryFile(/tmp/multipartBody4202520817410433350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974288619,"filename":"image_06042025_23_15_01_9047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c338ad97a39ad340c57a0e28203710c3.jpg","text":"TemporaryFile(/tmp/multipartBody314880095059420076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974288619,"filename":"image_06042025_01_55_01_2588.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/873ba0f7405364c264eb289d8abeddc5.jpg","text":"TemporaryFile(/tmp/multipartBody7239770909523785707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974288619,"filename":"image_06042025_01_50_01_7344.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/12c331ae834d58b0371585cffbf78995.jpg","text":"TemporaryFile(/tmp/multipartBody3491798385797867391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974288619,"filename":"image_06042025_01_54_01_8638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199032","file1":"1350199018","file0":"1350199015","file4":"1350199057","file5":"1350199074","file3":"1350199042"},"map_files_photo_id_array":[{"photo_id":"1350199074","filename":"file5"},{"photo_id":"1350199032","filename":"file2"},{"photo_id":"1350199057","filename":"file4"},{"photo_id":"1350199018","filename":"file1"},{"photo_id":"1350199015","filename":"file0"},{"photo_id":"1350199042","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350199057":["hashtag1","hashtag2"]},{"1350199042":["hashtag1","hashtag2"]},{"1350199015":["hashtag1","hashtag2"]},{"1350199018":["hashtag1","hashtag2"]},{"1350199074":["hashtag1","hashtag2"]},{"1350199032":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350199057, 1350199042, 1350199015, 1350199018, 1350199074, 1350199032)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.72570085525513 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:19:03.572282
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/01/49/image_06042025_01_49_01_6542.jpg', 2), ('/home/pi/Desktop/images/06042025/01/47/image_06042025_01_47_01_8641.jpg', 2), ('/home/pi/Desktop/images/06042025/01/46/image_06042025_01_46_01_6121.jpg', 2), ('/home/pi/Desktop/images/06042025/01/44/image_06042025_01_44_02_1536.jpg', 2), ('/home/pi/Desktop/images/06042025/01/43/image_06042025_01_43_01_9124.jpg', 2), ('/home/pi/Desktop/images/06042025/01/42/image_06042025_01_42_01_3230.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/01/49/image_06042025_01_49_01_6542.jpg', '/home/pi/Desktop/images/06042025/01/47/image_06042025_01_47_01_8641.jpg', '/home/pi/Desktop/images/06042025/01/46/image_06042025_01_46_01_6121.jpg', '/home/pi/Desktop/images/06042025/01/44/image_06042025_01_44_02_1536.jpg', '/home/pi/Desktop/images/06042025/01/43/image_06042025_01_43_01_9124.jpg', '/home/pi/Desktop/images/06042025/01/42/image_06042025_01_42_01_3230.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/01/49/image_06042025_01_49_01_6542.jpg
/home/pi/Desktop/images/06042025/01/47/image_06042025_01_47_01_8641.jpg
/home/pi/Desktop/images/06042025/01/46/image_06042025_01_46_01_6121.jpg
/home/pi/Desktop/images/06042025/01/44/image_06042025_01_44_02_1536.jpg
/home/pi/Desktop/images/06042025/01/43/image_06042025_01_43_01_9124.jpg
/home/pi/Desktop/images/06042025/01/42/image_06042025_01_42_01_3230.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199132","1350199129","1350199161","1350199149","1350199116","1350199136"],"photo_ids_order":["1350199116","1350199129","1350199132","1350199136","1350199149","1350199161"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/407446d916862c81492673dddcf6e8d1.jpg","text":"TemporaryFile(/tmp/multipartBody6674385574626843593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974408318,"filename":"image_06042025_01_46_01_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3a7bb9c04d8021aa249c7ed49ea81c39.jpg","text":"TemporaryFile(/tmp/multipartBody7392384593652537764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974408318,"filename":"image_06042025_01_47_01_8641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3d3e7e6aa4d2e6e261a2362e8800f3e7.jpg","text":"TemporaryFile(/tmp/multipartBody2311197940413382375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974408318,"filename":"image_06042025_01_42_01_3230.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f6055e5e83a3b36f09ac0e0fc5c54c81.jpg","text":"TemporaryFile(/tmp/multipartBody8218688460729567036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974408318,"filename":"image_06042025_01_43_01_9124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c4e0470b4b6e64dbf937f52160d1a10a.jpg","text":"TemporaryFile(/tmp/multipartBody1214947533319460026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974408318,"filename":"image_06042025_01_49_01_6542.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1eb60349b19b1bdd6a95f5ed3673a6aa.jpg","text":"TemporaryFile(/tmp/multipartBody715318844202567864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974408318,"filename":"image_06042025_01_44_02_1536.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199132","file1":"1350199129","file0":"1350199116","file4":"1350199149","file5":"1350199161","file3":"1350199136"},"map_files_photo_id_array":[{"photo_id":"1350199161","filename":"file5"},{"photo_id":"1350199132","filename":"file2"},{"photo_id":"1350199149","filename":"file4"},{"photo_id":"1350199129","filename":"file1"},{"photo_id":"1350199116","filename":"file0"},{"photo_id":"1350199136","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350199132":["hashtag1","hashtag2"]},{"1350199129":["hashtag1","hashtag2"]},{"1350199161":["hashtag1","hashtag2"]},{"1350199149":["hashtag1","hashtag2"]},{"1350199116":["hashtag1","hashtag2"]},{"1350199136":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350199132, 1350199129, 1350199161, 1350199149, 1350199116, 1350199136)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.853586435318 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:21:02.938031
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/01/41/image_06042025_01_41_02_2297.jpg', 2), ('/home/pi/Desktop/images/06042025/01/40/image_06042025_01_40_01_6965.jpg', 2), ('/home/pi/Desktop/images/06042025/01/39/image_06042025_01_39_01_5821.jpg', 2), ('/home/pi/Desktop/images/06042025/01/37/image_06042025_01_37_01_6440.jpg', 2), ('/home/pi/Desktop/images/06042025/01/34/image_06042025_01_34_01_9426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/28/image_06042025_01_28_01_8082.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/01/41/image_06042025_01_41_02_2297.jpg', '/home/pi/Desktop/images/06042025/01/40/image_06042025_01_40_01_6965.jpg', '/home/pi/Desktop/images/06042025/01/39/image_06042025_01_39_01_5821.jpg', '/home/pi/Desktop/images/06042025/01/37/image_06042025_01_37_01_6440.jpg', '/home/pi/Desktop/images/06042025/01/34/image_06042025_01_34_01_9426.jpg', '/home/pi/Desktop/images/06042025/01/28/image_06042025_01_28_01_8082.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/01/41/image_06042025_01_41_02_2297.jpg
/home/pi/Desktop/images/06042025/01/40/image_06042025_01_40_01_6965.jpg
/home/pi/Desktop/images/06042025/01/39/image_06042025_01_39_01_5821.jpg
/home/pi/Desktop/images/06042025/01/37/image_06042025_01_37_01_6440.jpg
/home/pi/Desktop/images/06042025/01/34/image_06042025_01_34_01_9426.jpg
/home/pi/Desktop/images/06042025/01/28/image_06042025_01_28_01_8082.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199243","1350199231","1350199272","1350199254","1350199248","1350199233"],"photo_ids_order":["1350199231","1350199233","1350199243","1350199248","1350199254","1350199272"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1c103ece33688ac7f61165d37d90ea46.jpg","text":"TemporaryFile(/tmp/multipartBody2969889529138502251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974527580,"filename":"image_06042025_01_39_01_5821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/29b2829d34f2d79c7a6b361409ad480c.jpg","text":"TemporaryFile(/tmp/multipartBody4003502084171236108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974527580,"filename":"image_06042025_01_41_02_2297.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a3cce1c209acf9abc6dfaa9843840748.jpg","text":"TemporaryFile(/tmp/multipartBody4228696581334567485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974527580,"filename":"image_06042025_01_28_01_8082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d0112e3a7dc5d30c559d18517482c0da.jpg","text":"TemporaryFile(/tmp/multipartBody4374026205719276895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974527580,"filename":"image_06042025_01_34_01_9426.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0de2186087a3dbf02a197f7889e877f2.jpg","text":"TemporaryFile(/tmp/multipartBody874148601272873396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974527580,"filename":"image_06042025_01_37_01_6440.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d0a5cb54bd812c97aa357028faff2640.jpg","text":"TemporaryFile(/tmp/multipartBody5089446639169069858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974527580,"filename":"image_06042025_01_40_01_6965.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199243","file1":"1350199233","file0":"1350199231","file4":"1350199254","file5":"1350199272","file3":"1350199248"},"map_files_photo_id_array":[{"photo_id":"1350199272","filename":"file5"},{"photo_id":"1350199243","filename":"file2"},{"photo_id":"1350199254","filename":"file4"},{"photo_id":"1350199233","filename":"file1"},{"photo_id":"1350199231","filename":"file0"},{"photo_id":"1350199248","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350199243":["hashtag1","hashtag2"]},{"1350199231":["hashtag1","hashtag2"]},{"1350199272":["hashtag1","hashtag2"]},{"1350199254":["hashtag1","hashtag2"]},{"1350199248":["hashtag1","hashtag2"]},{"1350199233":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350199243, 1350199231, 1350199272, 1350199254, 1350199248, 1350199233)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.78949022293091 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:23:03.774730
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg', 2), ('/home/pi/Desktop/images/06042025/01/26/image_06042025_01_26_01_6148.jpg', 2), ('/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg', 2), ('/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg', 2), ('/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', 2), ('/home/pi/Desktop/images/06042025/01/20/image_06042025_01_20_01_4812.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg', '/home/pi/Desktop/images/06042025/01/26/image_06042025_01_26_01_6148.jpg', '/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg', '/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg', '/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg', '/home/pi/Desktop/images/06042025/01/20/image_06042025_01_20_01_4812.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/01/27/image_06042025_01_27_02_1226.jpg
/home/pi/Desktop/images/06042025/01/26/image_06042025_01_26_01_6148.jpg
/home/pi/Desktop/images/06042025/01/25/image_06042025_01_25_02_2040.jpg
/home/pi/Desktop/images/06042025/01/24/image_06042025_01_24_01_7274.jpg
/home/pi/Desktop/images/06042025/01/21/image_06042025_01_21_01_7483.jpg
/home/pi/Desktop/images/06042025/01/20/image_06042025_01_20_01_4812.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199390","1350199402","1350199416","1350199311","1350199298","1350199337"],"photo_ids_order":["1350199298","1350199311","1350199337","1350199390","1350199402","1350199416"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5bc3aa5ef918842f1eff3bdcd7fd712d.jpg","text":"TemporaryFile(/tmp/multipartBody1351127421951173160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974648385,"filename":"image_06042025_01_24_01_7274.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2f7fe7643c4b73c4b8ca8f475f25387f.jpg","text":"TemporaryFile(/tmp/multipartBody3193631141860518413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974648385,"filename":"image_06042025_01_21_01_7483.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/806ebdc5650a0564d81fecfdb6060acc.jpg","text":"TemporaryFile(/tmp/multipartBody6661690876812324529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974648385,"filename":"image_06042025_01_20_01_4812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33e093b1e40228f2653b74ea3dfd3c40.jpg","text":"TemporaryFile(/tmp/multipartBody7280934883254135526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974648385,"filename":"image_06042025_01_26_01_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/daf9721963b1377c0e15c6dcf7f1a096.jpg","text":"TemporaryFile(/tmp/multipartBody698094804693671523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974648385,"filename":"image_06042025_01_27_02_1226.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dbb6a1c5bdc72810f32914818fb1b8bd.jpg","text":"TemporaryFile(/tmp/multipartBody9020071850356280270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974648385,"filename":"image_06042025_01_25_02_2040.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199337","file1":"1350199311","file0":"1350199298","file4":"1350199402","file5":"1350199416","file3":"1350199390"},"map_files_photo_id_array":[{"photo_id":"1350199416","filename":"file5"},{"photo_id":"1350199337","filename":"file2"},{"photo_id":"1350199402","filename":"file4"},{"photo_id":"1350199311","filename":"file1"},{"photo_id":"1350199298","filename":"file0"},{"photo_id":"1350199390","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350199390":["hashtag1","hashtag2"]},{"1350199402":["hashtag1","hashtag2"]},{"1350199416":["hashtag1","hashtag2"]},{"1350199311":["hashtag1","hashtag2"]},{"1350199298":["hashtag1","hashtag2"]},{"1350199337":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350199390, 1350199402, 1350199416, 1350199311, 1350199298, 1350199337)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 60.79967451095581 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:25:05.807370
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/16/image_06042025_23_16_01_9190.jpg', 2), ('/home/pi/Desktop/images/06042025/01/19/image_06042025_01_19_01_4761.jpg', 2), ('/home/pi/Desktop/images/06042025/01/18/image_06042025_01_18_01_9646.jpg', 2), ('/home/pi/Desktop/images/06042025/01/17/image_06042025_01_17_01_8603.jpg', 2), ('/home/pi/Desktop/images/06042025/01/14/image_06042025_01_14_02_1415.jpg', 2), ('/home/pi/Desktop/images/06042025/01/13/image_06042025_01_13_02_0395.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/16/image_06042025_23_16_01_9190.jpg', '/home/pi/Desktop/images/06042025/01/19/image_06042025_01_19_01_4761.jpg', '/home/pi/Desktop/images/06042025/01/18/image_06042025_01_18_01_9646.jpg', '/home/pi/Desktop/images/06042025/01/17/image_06042025_01_17_01_8603.jpg', '/home/pi/Desktop/images/06042025/01/14/image_06042025_01_14_02_1415.jpg', '/home/pi/Desktop/images/06042025/01/13/image_06042025_01_13_02_0395.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/16/image_06042025_23_16_01_9190.jpg
/home/pi/Desktop/images/06042025/01/19/image_06042025_01_19_01_4761.jpg
/home/pi/Desktop/images/06042025/01/18/image_06042025_01_18_01_9646.jpg
/home/pi/Desktop/images/06042025/01/17/image_06042025_01_17_01_8603.jpg
/home/pi/Desktop/images/06042025/01/14/image_06042025_01_14_02_1415.jpg
/home/pi/Desktop/images/06042025/01/13/image_06042025_01_13_02_0395.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199974","1350199941","1350199944","1350199938","1350199947","1350199961"],"photo_ids_order":["1350199938","1350199941","1350199944","1350199947","1350199961","1350199974"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc067ab3b0d951ea8c6a301ed5dd17a2.jpg","text":"TemporaryFile(/tmp/multipartBody3318077876216509363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974771370,"filename":"image_06042025_01_13_02_0395.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c2e0001653baed2f7a7bd94a08d63897.jpg","text":"TemporaryFile(/tmp/multipartBody4809651180640207950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974771370,"filename":"image_06042025_01_19_01_4761.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b80176d5feb845442adca1feafcc0a4e.jpg","text":"TemporaryFile(/tmp/multipartBody5454266759695006377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974771370,"filename":"image_06042025_01_18_01_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/55878eca0f68eb3676c2cfa9873473d1.jpg","text":"TemporaryFile(/tmp/multipartBody1004031961470903590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974771370,"filename":"image_06042025_23_16_01_9190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/61ac553c6a5c85053ab4dff42fff51bf.jpg","text":"TemporaryFile(/tmp/multipartBody6456336330347934733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974771370,"filename":"image_06042025_01_17_01_8603.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c605863778e6196eb479b91209f6e2be.jpg","text":"TemporaryFile(/tmp/multipartBody3231237409961810261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974771370,"filename":"image_06042025_01_14_02_1415.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199944","file1":"1350199941","file0":"1350199938","file4":"1350199961","file5":"1350199974","file3":"1350199947"},"map_files_photo_id_array":[{"photo_id":"1350199974","filename":"file5"},{"photo_id":"1350199944","filename":"file2"},{"photo_id":"1350199961","filename":"file4"},{"photo_id":"1350199941","filename":"file1"},{"photo_id":"1350199938","filename":"file0"},{"photo_id":"1350199947","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350199974":["hashtag1","hashtag2"]},{"1350199941":["hashtag1","hashtag2"]},{"1350199944":["hashtag1","hashtag2"]},{"1350199938":["hashtag1","hashtag2"]},{"1350199947":["hashtag1","hashtag2"]},{"1350199961":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350199974, 1350199941, 1350199944, 1350199938, 1350199947, 1350199961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.26438570022583 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:27:04.605419
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/26/image_06042025_23_26_01_6075.jpg', 2), ('/home/pi/Desktop/images/06042025/23/25/image_06042025_23_25_01_2986.jpg', 2), ('/home/pi/Desktop/images/06042025/01/12/image_06042025_01_12_01_4587.jpg', 2), ('/home/pi/Desktop/images/06042025/01/08/image_06042025_01_08_01_5245.jpg', 2), ('/home/pi/Desktop/images/06042025/01/07/image_06042025_01_07_01_6831.jpg', 2), ('/home/pi/Desktop/images/06042025/01/06/image_06042025_01_06_02_0141.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/26/image_06042025_23_26_01_6075.jpg', '/home/pi/Desktop/images/06042025/23/25/image_06042025_23_25_01_2986.jpg', '/home/pi/Desktop/images/06042025/01/12/image_06042025_01_12_01_4587.jpg', '/home/pi/Desktop/images/06042025/01/08/image_06042025_01_08_01_5245.jpg', '/home/pi/Desktop/images/06042025/01/07/image_06042025_01_07_01_6831.jpg', '/home/pi/Desktop/images/06042025/01/06/image_06042025_01_06_02_0141.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/26/image_06042025_23_26_01_6075.jpg
/home/pi/Desktop/images/06042025/23/25/image_06042025_23_25_01_2986.jpg
/home/pi/Desktop/images/06042025/01/12/image_06042025_01_12_01_4587.jpg
/home/pi/Desktop/images/06042025/01/08/image_06042025_01_08_01_5245.jpg
/home/pi/Desktop/images/06042025/01/07/image_06042025_01_07_01_6831.jpg
/home/pi/Desktop/images/06042025/01/06/image_06042025_01_06_02_0141.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200235","1350200219","1350200240","1350200221","1350200230","1350200227"],"photo_ids_order":["1350200219","1350200221","1350200227","1350200230","1350200235","1350200240"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2ccb597635efbbad2037ebfaf6cd1a9e.jpg","text":"TemporaryFile(/tmp/multipartBody4888736042356447944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974889297,"filename":"image_06042025_01_07_01_6831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b36364552121314d58685b42a7eddc67.jpg","text":"TemporaryFile(/tmp/multipartBody1463653072720444977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974889297,"filename":"image_06042025_23_26_01_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3b2c3fd66d77cb7b4f9c2b84a97debc7.jpg","text":"TemporaryFile(/tmp/multipartBody5093554588505293441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974889297,"filename":"image_06042025_01_06_02_0141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/afa548121641c869846afe9c5fe6b9bb.jpg","text":"TemporaryFile(/tmp/multipartBody7777616258344455057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974889297,"filename":"image_06042025_23_25_01_2986.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4413db70e2e1537e072b23a3244d1ef7.jpg","text":"TemporaryFile(/tmp/multipartBody3349722360575766272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974889297,"filename":"image_06042025_01_08_01_5245.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b525d05066c85cf8dadd810fa2f7c7b2.jpg","text":"TemporaryFile(/tmp/multipartBody28108476839103296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974889297,"filename":"image_06042025_01_12_01_4587.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200227","file1":"1350200221","file0":"1350200219","file4":"1350200235","file5":"1350200240","file3":"1350200230"},"map_files_photo_id_array":[{"photo_id":"1350200240","filename":"file5"},{"photo_id":"1350200227","filename":"file2"},{"photo_id":"1350200235","filename":"file4"},{"photo_id":"1350200221","filename":"file1"},{"photo_id":"1350200219","filename":"file0"},{"photo_id":"1350200230","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200235":["hashtag1","hashtag2"]},{"1350200219":["hashtag1","hashtag2"]},{"1350200240":["hashtag1","hashtag2"]},{"1350200221":["hashtag1","hashtag2"]},{"1350200230":["hashtag1","hashtag2"]},{"1350200227":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200235, 1350200219, 1350200240, 1350200221, 1350200230, 1350200227)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.51323747634888 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:29:03.977657
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/27/image_06042025_23_27_01_4608.jpg', 2), ('/home/pi/Desktop/images/06042025/01/04/image_06042025_01_04_01_4426.jpg', 2), ('/home/pi/Desktop/images/06042025/01/03/image_06042025_01_03_02_2102.jpg', 2), ('/home/pi/Desktop/images/06042025/01/01/image_06042025_01_01_01_8787.jpg', 2), ('/home/pi/Desktop/images/06042025/01/00/image_06042025_01_00_02_1298.jpg', 2), ('/home/pi/Desktop/images/06042025/00/59/image_06042025_00_59_01_6830.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/27/image_06042025_23_27_01_4608.jpg', '/home/pi/Desktop/images/06042025/01/04/image_06042025_01_04_01_4426.jpg', '/home/pi/Desktop/images/06042025/01/03/image_06042025_01_03_02_2102.jpg', '/home/pi/Desktop/images/06042025/01/01/image_06042025_01_01_01_8787.jpg', '/home/pi/Desktop/images/06042025/01/00/image_06042025_01_00_02_1298.jpg', '/home/pi/Desktop/images/06042025/00/59/image_06042025_00_59_01_6830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/27/image_06042025_23_27_01_4608.jpg
/home/pi/Desktop/images/06042025/01/04/image_06042025_01_04_01_4426.jpg
/home/pi/Desktop/images/06042025/01/03/image_06042025_01_03_02_2102.jpg
/home/pi/Desktop/images/06042025/01/01/image_06042025_01_01_01_8787.jpg
/home/pi/Desktop/images/06042025/01/00/image_06042025_01_00_02_1298.jpg
/home/pi/Desktop/images/06042025/00/59/image_06042025_00_59_01_6830.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200283","1350200292","1350200268","1350200288","1350200273","1350200279"],"photo_ids_order":["1350200268","1350200273","1350200279","1350200283","1350200288","1350200292"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6b6498b435e5d00ec5d87ece4983f432.jpg","text":"TemporaryFile(/tmp/multipartBody18347709787010011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975008830,"filename":"image_06042025_01_01_01_8787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1b506c53f31cf7947b030a46ef111e7a.jpg","text":"TemporaryFile(/tmp/multipartBody6056654055455936983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975008830,"filename":"image_06042025_00_59_01_6830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ccfb2964ca56f000144ff8a36b230cc9.jpg","text":"TemporaryFile(/tmp/multipartBody7988995679939832622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975008830,"filename":"image_06042025_23_27_01_4608.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9b291770c14ebb3adcaec51fc889ba8a.jpg","text":"TemporaryFile(/tmp/multipartBody226227668805870201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975008830,"filename":"image_06042025_01_00_02_1298.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c040831bb07aca02f76c65baf329db5a.jpg","text":"TemporaryFile(/tmp/multipartBody3403790564913105058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975008830,"filename":"image_06042025_01_04_01_4426.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/05f2112844037dee9e6ef2a84ab558e5.jpg","text":"TemporaryFile(/tmp/multipartBody8829935994642799898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975008830,"filename":"image_06042025_01_03_02_2102.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200279","file1":"1350200273","file0":"1350200268","file4":"1350200288","file5":"1350200292","file3":"1350200283"},"map_files_photo_id_array":[{"photo_id":"1350200292","filename":"file5"},{"photo_id":"1350200279","filename":"file2"},{"photo_id":"1350200288","filename":"file4"},{"photo_id":"1350200273","filename":"file1"},{"photo_id":"1350200268","filename":"file0"},{"photo_id":"1350200283","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200283":["hashtag1","hashtag2"]},{"1350200292":["hashtag1","hashtag2"]},{"1350200268":["hashtag1","hashtag2"]},{"1350200288":["hashtag1","hashtag2"]},{"1350200273":["hashtag1","hashtag2"]},{"1350200279":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200283, 1350200292, 1350200268, 1350200288, 1350200273, 1350200279)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 66.7691719532013 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:31:03.244821
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/00/56/image_06042025_00_56_01_2985.jpg', 2), ('/home/pi/Desktop/images/06042025/00/55/image_06042025_00_55_01_9472.jpg', 2), ('/home/pi/Desktop/images/06042025/00/54/image_06042025_00_54_01_4725.jpg', 2), ('/home/pi/Desktop/images/06042025/00/53/image_06042025_00_53_01_4130.jpg', 2), ('/home/pi/Desktop/images/06042025/00/52/image_06042025_00_52_01_6393.jpg', 2), ('/home/pi/Desktop/images/06042025/00/50/image_06042025_00_50_01_8157.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/00/56/image_06042025_00_56_01_2985.jpg', '/home/pi/Desktop/images/06042025/00/55/image_06042025_00_55_01_9472.jpg', '/home/pi/Desktop/images/06042025/00/54/image_06042025_00_54_01_4725.jpg', '/home/pi/Desktop/images/06042025/00/53/image_06042025_00_53_01_4130.jpg', '/home/pi/Desktop/images/06042025/00/52/image_06042025_00_52_01_6393.jpg', '/home/pi/Desktop/images/06042025/00/50/image_06042025_00_50_01_8157.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/00/56/image_06042025_00_56_01_2985.jpg
/home/pi/Desktop/images/06042025/00/55/image_06042025_00_55_01_9472.jpg
/home/pi/Desktop/images/06042025/00/54/image_06042025_00_54_01_4725.jpg
/home/pi/Desktop/images/06042025/00/53/image_06042025_00_53_01_4130.jpg
/home/pi/Desktop/images/06042025/00/52/image_06042025_00_52_01_6393.jpg
/home/pi/Desktop/images/06042025/00/50/image_06042025_00_50_01_8157.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200460","1350200448","1350200486","1350200452","1350200368","1350200425"],"photo_ids_order":["1350200368","1350200425","1350200448","1350200452","1350200460","1350200486"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4aad2898defe8fb3fa573b1ca64fb550.jpg","text":"TemporaryFile(/tmp/multipartBody8181157809028278120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975128060,"filename":"image_06042025_00_52_01_6393.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e7bd541999c4781353e1df5ad7e3b21c.jpg","text":"TemporaryFile(/tmp/multipartBody8172693887453029590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975128060,"filename":"image_06042025_00_54_01_4725.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e71a2cdc6088916e76ba76df5fe969d3.jpg","text":"TemporaryFile(/tmp/multipartBody7616834328619469207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975128060,"filename":"image_06042025_00_50_01_8157.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4f6e8d760a97830021d7522e7ad49995.jpg","text":"TemporaryFile(/tmp/multipartBody4451123462492905195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975128060,"filename":"image_06042025_00_53_01_4130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fdf904d19902fa9b81b8bee08eeffcbb.jpg","text":"TemporaryFile(/tmp/multipartBody567756199387933709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975128060,"filename":"image_06042025_00_56_01_2985.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3562581bd4375320260e25594e481051.jpg","text":"TemporaryFile(/tmp/multipartBody2991178947731535550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975128060,"filename":"image_06042025_00_55_01_9472.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200448","file1":"1350200425","file0":"1350200368","file4":"1350200460","file5":"1350200486","file3":"1350200452"},"map_files_photo_id_array":[{"photo_id":"1350200486","filename":"file5"},{"photo_id":"1350200448","filename":"file2"},{"photo_id":"1350200460","filename":"file4"},{"photo_id":"1350200425","filename":"file1"},{"photo_id":"1350200368","filename":"file0"},{"photo_id":"1350200452","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200460":["hashtag1","hashtag2"]},{"1350200448":["hashtag1","hashtag2"]},{"1350200486":["hashtag1","hashtag2"]},{"1350200452":["hashtag1","hashtag2"]},{"1350200368":["hashtag1","hashtag2"]},{"1350200425":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200460, 1350200448, 1350200486, 1350200452, 1350200368, 1350200425)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.02349472045898 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:33:04.036250
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/33/image_06042025_23_33_02_0664.jpg', 2), ('/home/pi/Desktop/images/06042025/23/29/image_06042025_23_29_01_9336.jpg', 2), ('/home/pi/Desktop/images/06042025/00/48/image_06042025_00_48_02_1040.jpg', 2), ('/home/pi/Desktop/images/06042025/00/43/image_06042025_00_43_02_0392.jpg', 2), ('/home/pi/Desktop/images/06042025/00/42/image_06042025_00_42_01_2259.jpg', 2), ('/home/pi/Desktop/images/06042025/00/41/image_06042025_00_41_01_4479.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/33/image_06042025_23_33_02_0664.jpg', '/home/pi/Desktop/images/06042025/23/29/image_06042025_23_29_01_9336.jpg', '/home/pi/Desktop/images/06042025/00/48/image_06042025_00_48_02_1040.jpg', '/home/pi/Desktop/images/06042025/00/43/image_06042025_00_43_02_0392.jpg', '/home/pi/Desktop/images/06042025/00/42/image_06042025_00_42_01_2259.jpg', '/home/pi/Desktop/images/06042025/00/41/image_06042025_00_41_01_4479.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/33/image_06042025_23_33_02_0664.jpg
/home/pi/Desktop/images/06042025/23/29/image_06042025_23_29_01_9336.jpg
/home/pi/Desktop/images/06042025/00/48/image_06042025_00_48_02_1040.jpg
/home/pi/Desktop/images/06042025/00/43/image_06042025_00_43_02_0392.jpg
/home/pi/Desktop/images/06042025/00/42/image_06042025_00_42_01_2259.jpg
/home/pi/Desktop/images/06042025/00/41/image_06042025_00_41_01_4479.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200580","1350200601","1350200585","1350200575","1350200614","1350200571"],"photo_ids_order":["1350200571","1350200575","1350200580","1350200585","1350200601","1350200614"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f10d179b4e0a0fa8419ea983f7369fbc.jpg","text":"TemporaryFile(/tmp/multipartBody1868998518017709554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975248527,"filename":"image_06042025_00_48_02_1040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c909a4e56e041bdb78ec5b26ed84b999.jpg","text":"TemporaryFile(/tmp/multipartBody5306234523430603566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975248527,"filename":"image_06042025_00_42_01_2259.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/68c06cc13faba2822a90b1576e3abd4f.jpg","text":"TemporaryFile(/tmp/multipartBody1741611546320698343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975248527,"filename":"image_06042025_00_43_02_0392.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fac808474a348d5f69a54440024fa180.jpg","text":"TemporaryFile(/tmp/multipartBody3813425379314076782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975248527,"filename":"image_06042025_23_29_01_9336.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/efeedb31b63d24ee8feb23d788e4fdd6.jpg","text":"TemporaryFile(/tmp/multipartBody4340993528246032094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975248527,"filename":"image_06042025_00_41_01_4479.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/85cac0e798297de92c34bc1a079f05ea.jpg","text":"TemporaryFile(/tmp/multipartBody8406330144740359376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975248527,"filename":"image_06042025_23_33_02_0664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200580","file1":"1350200575","file0":"1350200571","file4":"1350200601","file5":"1350200614","file3":"1350200585"},"map_files_photo_id_array":[{"photo_id":"1350200614","filename":"file5"},{"photo_id":"1350200580","filename":"file2"},{"photo_id":"1350200601","filename":"file4"},{"photo_id":"1350200575","filename":"file1"},{"photo_id":"1350200571","filename":"file0"},{"photo_id":"1350200585","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200580":["hashtag1","hashtag2"]},{"1350200601":["hashtag1","hashtag2"]},{"1350200585":["hashtag1","hashtag2"]},{"1350200575":["hashtag1","hashtag2"]},{"1350200614":["hashtag1","hashtag2"]},{"1350200571":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200580, 1350200601, 1350200585, 1350200575, 1350200614, 1350200571)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.02697134017944 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:35:03.899631
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/34/image_06042025_23_34_02_1875.jpg', 2), ('/home/pi/Desktop/images/06042025/23/32/image_06042025_23_32_01_3875.jpg', 2), ('/home/pi/Desktop/images/06042025/00/40/image_06042025_00_40_01_4191.jpg', 2), ('/home/pi/Desktop/images/06042025/00/39/image_06042025_00_39_01_9896.jpg', 2), ('/home/pi/Desktop/images/06042025/00/38/image_06042025_00_38_01_7075.jpg', 2), ('/home/pi/Desktop/images/06042025/00/35/image_06042025_00_35_02_1754.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/34/image_06042025_23_34_02_1875.jpg', '/home/pi/Desktop/images/06042025/23/32/image_06042025_23_32_01_3875.jpg', '/home/pi/Desktop/images/06042025/00/40/image_06042025_00_40_01_4191.jpg', '/home/pi/Desktop/images/06042025/00/39/image_06042025_00_39_01_9896.jpg', '/home/pi/Desktop/images/06042025/00/38/image_06042025_00_38_01_7075.jpg', '/home/pi/Desktop/images/06042025/00/35/image_06042025_00_35_02_1754.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/34/image_06042025_23_34_02_1875.jpg
/home/pi/Desktop/images/06042025/23/32/image_06042025_23_32_01_3875.jpg
/home/pi/Desktop/images/06042025/00/40/image_06042025_00_40_01_4191.jpg
/home/pi/Desktop/images/06042025/00/39/image_06042025_00_39_01_9896.jpg
/home/pi/Desktop/images/06042025/00/38/image_06042025_00_38_01_7075.jpg
/home/pi/Desktop/images/06042025/00/35/image_06042025_00_35_02_1754.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200673","1350200676","1350200709","1350200711","1350200704","1350200691"],"photo_ids_order":["1350200673","1350200676","1350200691","1350200704","1350200709","1350200711"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b93b67498e17ee1fc235f103d6e20872.jpg","text":"TemporaryFile(/tmp/multipartBody7776242581194024135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975368209,"filename":"image_06042025_23_34_02_1875.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9c4af8845e2a8ab0155f96a3bb1e81ff.jpg","text":"TemporaryFile(/tmp/multipartBody4308423920731902985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975368209,"filename":"image_06042025_23_32_01_3875.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ab0de4944c27ce6caff92789c484cb81.jpg","text":"TemporaryFile(/tmp/multipartBody8233978652929613168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975368209,"filename":"image_06042025_00_38_01_7075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bb6d61e75826a3e32522b95d17470e2b.jpg","text":"TemporaryFile(/tmp/multipartBody7349357135964838139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975368209,"filename":"image_06042025_00_35_02_1754.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f56e3c3ef6b8344aefb631c1d7d27772.jpg","text":"TemporaryFile(/tmp/multipartBody5610536428984040085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975368209,"filename":"image_06042025_00_39_01_9896.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eb0eaa6986db64bb111b27e6dc608f1c.jpg","text":"TemporaryFile(/tmp/multipartBody8120304137548792539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975368209,"filename":"image_06042025_00_40_01_4191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200691","file1":"1350200676","file0":"1350200673","file4":"1350200709","file5":"1350200711","file3":"1350200704"},"map_files_photo_id_array":[{"photo_id":"1350200711","filename":"file5"},{"photo_id":"1350200691","filename":"file2"},{"photo_id":"1350200709","filename":"file4"},{"photo_id":"1350200676","filename":"file1"},{"photo_id":"1350200673","filename":"file0"},{"photo_id":"1350200704","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200673":["hashtag1","hashtag2"]},{"1350200676":["hashtag1","hashtag2"]},{"1350200709":["hashtag1","hashtag2"]},{"1350200711":["hashtag1","hashtag2"]},{"1350200704":["hashtag1","hashtag2"]},{"1350200691":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200673, 1350200676, 1350200709, 1350200711, 1350200704, 1350200691)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.57218074798584 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:37:03.915127
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/00/34/image_06042025_00_34_01_9361.jpg', 2), ('/home/pi/Desktop/images/06042025/00/31/image_06042025_00_31_01_2099.jpg', 2), ('/home/pi/Desktop/images/06042025/00/29/image_06042025_00_29_01_8718.jpg', 2), ('/home/pi/Desktop/images/06042025/00/28/image_06042025_00_28_02_1112.jpg', 2), ('/home/pi/Desktop/images/06042025/00/27/image_06042025_00_27_02_1568.jpg', 2), ('/home/pi/Desktop/images/06042025/00/26/image_06042025_00_26_01_9072.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/00/34/image_06042025_00_34_01_9361.jpg', '/home/pi/Desktop/images/06042025/00/31/image_06042025_00_31_01_2099.jpg', '/home/pi/Desktop/images/06042025/00/29/image_06042025_00_29_01_8718.jpg', '/home/pi/Desktop/images/06042025/00/28/image_06042025_00_28_02_1112.jpg', '/home/pi/Desktop/images/06042025/00/27/image_06042025_00_27_02_1568.jpg', '/home/pi/Desktop/images/06042025/00/26/image_06042025_00_26_01_9072.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/00/34/image_06042025_00_34_01_9361.jpg
/home/pi/Desktop/images/06042025/00/31/image_06042025_00_31_01_2099.jpg
/home/pi/Desktop/images/06042025/00/29/image_06042025_00_29_01_8718.jpg
/home/pi/Desktop/images/06042025/00/28/image_06042025_00_28_02_1112.jpg
/home/pi/Desktop/images/06042025/00/27/image_06042025_00_27_02_1568.jpg
/home/pi/Desktop/images/06042025/00/26/image_06042025_00_26_01_9072.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200748","1350200745","1350200756","1350200738","1350200740","1350200752"],"photo_ids_order":["1350200738","1350200740","1350200745","1350200748","1350200752","1350200756"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/589d02e66e1d12c09a98f17e8d1a7eed.jpg","text":"TemporaryFile(/tmp/multipartBody1949575839439058356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975488494,"filename":"image_06042025_00_28_02_1112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/85db1c9055ddff451bad1805a9ca78c8.jpg","text":"TemporaryFile(/tmp/multipartBody2028733018248100162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975488494,"filename":"image_06042025_00_29_01_8718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cc8a771c8733657d6cc4ad180f8bd039.jpg","text":"TemporaryFile(/tmp/multipartBody1329880051654862245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975488494,"filename":"image_06042025_00_26_01_9072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f350e776ebb254a06f3c0d39e79c2f1e.jpg","text":"TemporaryFile(/tmp/multipartBody2330115342159800476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975488494,"filename":"image_06042025_00_34_01_9361.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf3cb9df0b335d1d40e1e7141440dc23.jpg","text":"TemporaryFile(/tmp/multipartBody1509033774025086357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975488494,"filename":"image_06042025_00_31_01_2099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3ca17ebdd74edbbe5e5d0d5824f64659.jpg","text":"TemporaryFile(/tmp/multipartBody4607317000250886216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975488494,"filename":"image_06042025_00_27_02_1568.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200745","file1":"1350200740","file0":"1350200738","file4":"1350200752","file5":"1350200756","file3":"1350200748"},"map_files_photo_id_array":[{"photo_id":"1350200756","filename":"file5"},{"photo_id":"1350200745","filename":"file2"},{"photo_id":"1350200752","filename":"file4"},{"photo_id":"1350200740","filename":"file1"},{"photo_id":"1350200738","filename":"file0"},{"photo_id":"1350200748","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200748":["hashtag1","hashtag2"]},{"1350200745":["hashtag1","hashtag2"]},{"1350200756":["hashtag1","hashtag2"]},{"1350200738":["hashtag1","hashtag2"]},{"1350200740":["hashtag1","hashtag2"]},{"1350200752":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200748, 1350200745, 1350200756, 1350200738, 1350200740, 1350200752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.28360104560852 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:39:03.549194
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_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/pi/Desktop/images/06042025/23/35/image_06042025_23_35_02_0955.jpg', 2), ('/home/pi/Desktop/images/06042025/00/23/image_06042025_00_23_01_5513.jpg', 2), ('/home/pi/Desktop/images/06042025/00/21/image_06042025_00_21_01_6581.jpg', 2), ('/home/pi/Desktop/images/06042025/00/20/image_06042025_00_20_02_0525.jpg', 2), ('/home/pi/Desktop/images/06042025/00/19/image_06042025_00_19_01_9692.jpg', 2), ('/home/pi/Desktop/images/06042025/00/07/image_06042025_00_07_01_9793.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/35/image_06042025_23_35_02_0955.jpg', '/home/pi/Desktop/images/06042025/00/23/image_06042025_00_23_01_5513.jpg', '/home/pi/Desktop/images/06042025/00/21/image_06042025_00_21_01_6581.jpg', '/home/pi/Desktop/images/06042025/00/20/image_06042025_00_20_02_0525.jpg', '/home/pi/Desktop/images/06042025/00/19/image_06042025_00_19_01_9692.jpg', '/home/pi/Desktop/images/06042025/00/07/image_06042025_00_07_01_9793.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/35/image_06042025_23_35_02_0955.jpg
/home/pi/Desktop/images/06042025/00/23/image_06042025_00_23_01_5513.jpg
/home/pi/Desktop/images/06042025/00/21/image_06042025_00_21_01_6581.jpg
/home/pi/Desktop/images/06042025/00/20/image_06042025_00_20_02_0525.jpg
/home/pi/Desktop/images/06042025/00/19/image_06042025_00_19_01_9692.jpg
/home/pi/Desktop/images/06042025/00/07/image_06042025_00_07_01_9793.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200886","1350200861","1350200864","1350200846","1350200849","1350200828"],"photo_ids_order":["1350200828","1350200846","1350200849","1350200861","1350200864","1350200886"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b6acac23c662b6a89fa17d3b2d80f284.jpg","text":"TemporaryFile(/tmp/multipartBody702282589209614150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975607636,"filename":"image_06042025_00_07_01_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/bdfc3304dee234e1c305e781b4c8e4ab.jpg","text":"TemporaryFile(/tmp/multipartBody3893975297792789968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975607636,"filename":"image_06042025_00_20_02_0525.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed8a2e37dae1760c4a2030216177c85d.jpg","text":"TemporaryFile(/tmp/multipartBody6450691695115784548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975607636,"filename":"image_06042025_00_19_01_9692.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ef82715e8dea682331c965b35afe6374.jpg","text":"TemporaryFile(/tmp/multipartBody4087686255414450577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975607636,"filename":"image_06042025_00_23_01_5513.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e8dc5fdba7fc6ea31d275d0e1cc3b14.jpg","text":"TemporaryFile(/tmp/multipartBody7875169320905765774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975607636,"filename":"image_06042025_00_21_01_6581.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d1b3ceab05f50dc3a526103a9bb09555.jpg","text":"TemporaryFile(/tmp/multipartBody4248547368570468634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975607636,"filename":"image_06042025_23_35_02_0955.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200849","file1":"1350200846","file0":"1350200828","file4":"1350200864","file5":"1350200886","file3":"1350200861"},"map_files_photo_id_array":[{"photo_id":"1350200886","filename":"file5"},{"photo_id":"1350200849","filename":"file2"},{"photo_id":"1350200864","filename":"file4"},{"photo_id":"1350200846","filename":"file1"},{"photo_id":"1350200828","filename":"file0"},{"photo_id":"1350200861","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200886":["hashtag1","hashtag2"]},{"1350200861":["hashtag1","hashtag2"]},{"1350200864":["hashtag1","hashtag2"]},{"1350200846":["hashtag1","hashtag2"]},{"1350200849":["hashtag1","hashtag2"]},{"1350200828":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200886, 1350200861, 1350200864, 1350200846, 1350200849, 1350200828)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 67.52036142349243 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:41:03.474395
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 5 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/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', 2), ('/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', 2), ('/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', 2), ('/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', 2), ('/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg', '/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg', '/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg', '/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg', '/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/00/05/image_06042025_00_05_01_8488.jpg
/home/pi/Desktop/images/06042025/00/04/image_06042025_00_04_01_1886.jpg
/home/pi/Desktop/images/06042025/00/03/image_06042025_00_03_01_6437.jpg
/home/pi/Desktop/images/06042025/00/02/image_06042025_00_02_01_6498.jpg
/home/pi/Desktop/images/06042025/00/00/image_06042025_00_00_02_2540.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200952","1350200943","1350200933","1350200971","1350200929"],"photo_ids_order":["1350200929","1350200933","1350200943","1350200952","1350200971"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fe7e900908a62a750c8fb7a2c41af344.jpg","text":"TemporaryFile(/tmp/multipartBody2611713178779138057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975727459,"filename":"image_06042025_00_02_01_6498.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5cc3c21ef0720a1640755af6c371963a.jpg","text":"TemporaryFile(/tmp/multipartBody8980063682363714591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975727459,"filename":"image_06042025_00_03_01_6437.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e4b54cc7fd9f0bfe202505de5e64f31e.jpg","text":"TemporaryFile(/tmp/multipartBody3257884056987934242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975727459,"filename":"image_06042025_00_04_01_1886.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6ceed8f5fb78d0dff44e12603b648457.jpg","text":"TemporaryFile(/tmp/multipartBody3421420765479310473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975727459,"filename":"image_06042025_00_00_02_2540.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9a2d5ff4565af7f217bbd373fc30651f.jpg","text":"TemporaryFile(/tmp/multipartBody480261017323532470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975727459,"filename":"image_06042025_00_05_01_8488.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200943","file1":"1350200933","file0":"1350200929","file4":"1350200971","file3":"1350200952"},"map_files_photo_id_array":[{"photo_id":"1350200943","filename":"file2"},{"photo_id":"1350200971","filename":"file4"},{"photo_id":"1350200933","filename":"file1"},{"photo_id":"1350200929","filename":"file0"},{"photo_id":"1350200952","filename":"file3"}],"portfolio_id":22083911,"hashtag_by_photo_ids":[{"1350200952":["hashtag1","hashtag2"]},{"1350200943":["hashtag1","hashtag2"]},{"1350200933":["hashtag1","hashtag2"]},{"1350200971":["hashtag1","hashtag2"]},{"1350200929":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083911 used, photo_id : ArrayBuffer(1350200952, 1350200943, 1350200933, 1350200971, 1350200929)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 5 photos
time to upload: 53.598408937454224 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:42:02.708866
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042025
  port_id : 22083390
  datou_current_id : 2727227
in upload_from_sqlite, uploading in 22083390
in upload_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;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250307 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250308 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250309 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250310 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250311 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250312 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250313 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250314 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250315 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250316 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250317 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250319 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250320 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250321 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250322 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250323 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250324 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250325 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250326 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250327 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250328 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250329 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250330 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250331 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250401 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250402 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250403 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250404 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250405 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/05042025/23/59/image_05042025_23_59_01_7818.jpg', 2), ('/home/pi/Desktop/images/05042025/23/58/image_05042025_23_58_01_5320.jpg', 2), ('/home/pi/Desktop/images/05042025/23/57/image_05042025_23_57_02_1964.jpg', 2), ('/home/pi/Desktop/images/05042025/23/56/image_05042025_23_56_01_7245.jpg', 2), ('/home/pi/Desktop/images/05042025/23/55/image_05042025_23_55_02_0352.jpg', 2), ('/home/pi/Desktop/images/05042025/23/54/image_05042025_23_54_01_5520.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/05042025/23/59/image_05042025_23_59_01_7818.jpg', '/home/pi/Desktop/images/05042025/23/58/image_05042025_23_58_01_5320.jpg', '/home/pi/Desktop/images/05042025/23/57/image_05042025_23_57_02_1964.jpg', '/home/pi/Desktop/images/05042025/23/56/image_05042025_23_56_01_7245.jpg', '/home/pi/Desktop/images/05042025/23/55/image_05042025_23_55_02_0352.jpg', '/home/pi/Desktop/images/05042025/23/54/image_05042025_23_54_01_5520.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727227&datou=0
/home/pi/Desktop/images/05042025/23/59/image_05042025_23_59_01_7818.jpg
/home/pi/Desktop/images/05042025/23/58/image_05042025_23_58_01_5320.jpg
/home/pi/Desktop/images/05042025/23/57/image_05042025_23_57_02_1964.jpg
/home/pi/Desktop/images/05042025/23/56/image_05042025_23_56_01_7245.jpg
/home/pi/Desktop/images/05042025/23/55/image_05042025_23_55_02_0352.jpg
/home/pi/Desktop/images/05042025/23/54/image_05042025_23_54_01_5520.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201080","1350201065","1350201052","1350201055","1350201100","1350201087"],"photo_ids_order":["1350201052","1350201055","1350201065","1350201080","1350201087","1350201100"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/efb8740ca98b30dbd75599f760d8fe36.jpg","text":"TemporaryFile(/tmp/multipartBody5087936187194189571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975787570,"filename":"image_05042025_23_56_01_7245.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/07aac4cdaf75a4043003ee6c8c8fcc6c.jpg","text":"TemporaryFile(/tmp/multipartBody6827398874445208015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975787570,"filename":"image_05042025_23_57_02_1964.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da89896b79cc9caef2a88e5861b450a4.jpg","text":"TemporaryFile(/tmp/multipartBody8764691572012269608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975787570,"filename":"image_05042025_23_59_01_7818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8b590bcab53ccef717dec7aab634951f.jpg","text":"TemporaryFile(/tmp/multipartBody8907167027839973611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975787570,"filename":"image_05042025_23_58_01_5320.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2144a6bda60c99cb39d067da07b0d000.jpg","text":"TemporaryFile(/tmp/multipartBody2328656795881897700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975787570,"filename":"image_05042025_23_54_01_5520.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0fd4fb1ce27bca9f759cfd592fc7126a.jpg","text":"TemporaryFile(/tmp/multipartBody8812879478215388447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975787570,"filename":"image_05042025_23_55_02_0352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201065","file1":"1350201055","file0":"1350201052","file4":"1350201087","file5":"1350201100","file3":"1350201080"},"map_files_photo_id_array":[{"photo_id":"1350201100","filename":"file5"},{"photo_id":"1350201065","filename":"file2"},{"photo_id":"1350201087","filename":"file4"},{"photo_id":"1350201055","filename":"file1"},{"photo_id":"1350201052","filename":"file0"},{"photo_id":"1350201080","filename":"file3"}],"portfolio_id":22083390,"hashtag_by_photo_ids":[{"1350201080":["hashtag1","hashtag2"]},{"1350201065":["hashtag1","hashtag2"]},{"1350201052":["hashtag1","hashtag2"]},{"1350201055":["hashtag1","hashtag2"]},{"1350201100":["hashtag1","hashtag2"]},{"1350201087":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083390 used, photo_id : ArrayBuffer(1350201080, 1350201065, 1350201052, 1350201055, 1350201100, 1350201087)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 62.36180138587952 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:44:03.309011
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/38/image_06042025_23_38_02_1644.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/38/image_06042025_23_38_02_1644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/38/image_06042025_23_38_02_1644.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201349"],"photo_id":"1350201349","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e52cf52b87ea2f18e49b75b6b8ae56bb.jpg","text":"TemporaryFile(/tmp/multipartBody6837262134693013980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975904065,"filename":"image_06042025_23_38_02_1644.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350201349"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350201349"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 14.919574975967407 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:45:03.981115
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042025
  port_id : 22083390
  datou_current_id : 2727227
in upload_from_sqlite, uploading in 22083390
in upload_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;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250307 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250308 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250309 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250310 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250311 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250312 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250313 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250314 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250315 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250316 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250317 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250319 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250320 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250321 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250322 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250323 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250324 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250325 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250326 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250327 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250328 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250329 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250330 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250331 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250401 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250402 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250403 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250404 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250405 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/05042025/23/53/image_05042025_23_53_02_0293.jpg', 2), ('/home/pi/Desktop/images/05042025/23/52/image_05042025_23_52_01_6277.jpg', 2), ('/home/pi/Desktop/images/05042025/23/47/image_05042025_23_47_01_4919.jpg', 2), ('/home/pi/Desktop/images/05042025/23/46/image_05042025_23_46_02_1581.jpg', 2), ('/home/pi/Desktop/images/05042025/23/43/image_05042025_23_43_01_4595.jpg', 2), ('/home/pi/Desktop/images/05042025/23/42/image_05042025_23_42_01_8410.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/05042025/23/53/image_05042025_23_53_02_0293.jpg', '/home/pi/Desktop/images/05042025/23/52/image_05042025_23_52_01_6277.jpg', '/home/pi/Desktop/images/05042025/23/47/image_05042025_23_47_01_4919.jpg', '/home/pi/Desktop/images/05042025/23/46/image_05042025_23_46_02_1581.jpg', '/home/pi/Desktop/images/05042025/23/43/image_05042025_23_43_01_4595.jpg', '/home/pi/Desktop/images/05042025/23/42/image_05042025_23_42_01_8410.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727227&datou=0
/home/pi/Desktop/images/05042025/23/53/image_05042025_23_53_02_0293.jpg
/home/pi/Desktop/images/05042025/23/52/image_05042025_23_52_01_6277.jpg
/home/pi/Desktop/images/05042025/23/47/image_05042025_23_47_01_4919.jpg
/home/pi/Desktop/images/05042025/23/46/image_05042025_23_46_02_1581.jpg
/home/pi/Desktop/images/05042025/23/43/image_05042025_23_43_01_4595.jpg
/home/pi/Desktop/images/05042025/23/42/image_05042025_23_42_01_8410.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201417","1350201414","1350201383","1350201428","1350201413","1350201499"],"photo_ids_order":["1350201383","1350201413","1350201414","1350201417","1350201428","1350201499"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7b0b498fa299b5a3110f0453bdee45bd.jpg","text":"TemporaryFile(/tmp/multipartBody747846257134996901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975968722,"filename":"image_05042025_23_46_02_1581.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cdcfef573e80c515ca3691e3e17b3acc.jpg","text":"TemporaryFile(/tmp/multipartBody6334898895519850428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975968722,"filename":"image_05042025_23_47_01_4919.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33fc2d19038f4f6a1f164255302687b6.jpg","text":"TemporaryFile(/tmp/multipartBody8249891663568259582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975968722,"filename":"image_05042025_23_53_02_0293.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c1bd258e4a5b66cdcf6b26487468bd0e.jpg","text":"TemporaryFile(/tmp/multipartBody2091454134234392443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975968722,"filename":"image_05042025_23_43_01_4595.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/257de38abfcc3f482a49f6db5b3f8e55.jpg","text":"TemporaryFile(/tmp/multipartBody1371132950578391903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975968722,"filename":"image_05042025_23_52_01_6277.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf55fdb101f2434e9e9e8d5b77be32ca.jpg","text":"TemporaryFile(/tmp/multipartBody4102424896256726796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975968722,"filename":"image_05042025_23_42_01_8410.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201414","file1":"1350201413","file0":"1350201383","file4":"1350201428","file5":"1350201499","file3":"1350201417"},"map_files_photo_id_array":[{"photo_id":"1350201499","filename":"file5"},{"photo_id":"1350201414","filename":"file2"},{"photo_id":"1350201428","filename":"file4"},{"photo_id":"1350201413","filename":"file1"},{"photo_id":"1350201383","filename":"file0"},{"photo_id":"1350201417","filename":"file3"}],"portfolio_id":22083390,"hashtag_by_photo_ids":[{"1350201417":["hashtag1","hashtag2"]},{"1350201414":["hashtag1","hashtag2"]},{"1350201383":["hashtag1","hashtag2"]},{"1350201428":["hashtag1","hashtag2"]},{"1350201413":["hashtag1","hashtag2"]},{"1350201499":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083390 used, photo_id : ArrayBuffer(1350201417, 1350201414, 1350201383, 1350201428, 1350201413, 1350201499)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.123985290527344 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:47:03.347800
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/44/image_06042025_23_44_01_3468.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/44/image_06042025_23_44_01_3468.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/44/image_06042025_23_44_01_3468.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201655"],"photo_id":"1350201655","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8241d6f66b04e9d64b9f15747106dfba.jpg","text":"TemporaryFile(/tmp/multipartBody1973840547793210188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976084108,"filename":"image_06042025_23_44_01_3468.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350201655"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350201655"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 14.505945920944214 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:48:03.412510
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/47/image_06042025_23_47_01_4796.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/47/image_06042025_23_47_01_4796.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/47/image_06042025_23_47_01_4796.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201841"],"photo_id":"1350201841","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/53b546819dc53e414f14fe8a0f09a819.jpg","text":"TemporaryFile(/tmp/multipartBody7925663726394835935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976144187,"filename":"image_06042025_23_47_01_4796.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350201841"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350201841"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 14.396856784820557 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:49:03.960445
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/48/image_06042025_23_48_01_6726.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/48/image_06042025_23_48_01_6726.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/48/image_06042025_23_48_01_6726.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202009"],"photo_id":"1350202009","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25f0d065a6dca073dc1e96b66b21409f.jpg","text":"TemporaryFile(/tmp/multipartBody568381775551127564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976204778,"filename":"image_06042025_23_48_01_6726.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350202009"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350202009"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 15.483672618865967 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:50:02.949541
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/49/image_06042025_23_49_02_1574.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/49/image_06042025_23_49_02_1574.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/49/image_06042025_23_49_02_1574.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202051"],"photo_id":"1350202051","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cbf2763b0e8be05e29c3e51e0d5e581d.jpg","text":"TemporaryFile(/tmp/multipartBody399311612189631812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976263765,"filename":"image_06042025_23_49_02_1574.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350202051"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350202051"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 15.064125061035156 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:51:03.347458
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/50/image_06042025_23_50_02_1724.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/50/image_06042025_23_50_02_1724.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/50/image_06042025_23_50_02_1724.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202138"],"photo_id":"1350202138","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ab9eef56f6e1bd5c0a0e5411c272e38b.jpg","text":"TemporaryFile(/tmp/multipartBody1990510283112824399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976324163,"filename":"image_06042025_23_50_02_1724.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350202138"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350202138"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 14.53931999206543 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:52:02.570513
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/51/image_06042025_23_51_01_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/51/image_06042025_23_51_01_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/51/image_06042025_23_51_01_6198.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202565"],"photo_id":"1350202565","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/45e52303a39043a5936babedb23b10f8.jpg","text":"TemporaryFile(/tmp/multipartBody9017112983355568151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976383380,"filename":"image_06042025_23_51_01_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350202565"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350202565"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 15.230786323547363 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:53:03.539529
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042025
  port_id : 22083390
  datou_current_id : 2727227
in upload_from_sqlite, uploading in 22083390
in upload_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;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250307 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250308 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250309 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250310 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250311 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250312 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250313 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250314 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250315 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250316 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250317 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250319 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250320 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250321 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250322 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250323 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250324 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250325 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250326 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250327 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250328 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250329 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250330 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250331 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250401 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250402 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250403 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250404 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250405 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/05042025/23/41/image_05042025_23_41_02_2048.jpg', 2), ('/home/pi/Desktop/images/05042025/23/40/image_05042025_23_40_01_8036.jpg', 2), ('/home/pi/Desktop/images/05042025/23/35/image_05042025_23_35_01_5115.jpg', 2), ('/home/pi/Desktop/images/05042025/23/32/image_05042025_23_32_01_7779.jpg', 2), ('/home/pi/Desktop/images/05042025/23/31/image_05042025_23_31_01_7293.jpg', 2), ('/home/pi/Desktop/images/05042025/23/30/image_05042025_23_30_01_6959.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/05042025/23/41/image_05042025_23_41_02_2048.jpg', '/home/pi/Desktop/images/05042025/23/40/image_05042025_23_40_01_8036.jpg', '/home/pi/Desktop/images/05042025/23/35/image_05042025_23_35_01_5115.jpg', '/home/pi/Desktop/images/05042025/23/32/image_05042025_23_32_01_7779.jpg', '/home/pi/Desktop/images/05042025/23/31/image_05042025_23_31_01_7293.jpg', '/home/pi/Desktop/images/05042025/23/30/image_05042025_23_30_01_6959.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727227&datou=0
/home/pi/Desktop/images/05042025/23/41/image_05042025_23_41_02_2048.jpg
/home/pi/Desktop/images/05042025/23/40/image_05042025_23_40_01_8036.jpg
/home/pi/Desktop/images/05042025/23/35/image_05042025_23_35_01_5115.jpg
/home/pi/Desktop/images/05042025/23/32/image_05042025_23_32_01_7779.jpg
/home/pi/Desktop/images/05042025/23/31/image_05042025_23_31_01_7293.jpg
/home/pi/Desktop/images/05042025/23/30/image_05042025_23_30_01_6959.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202925","1350202916","1350202780","1350202790","1350202784","1350202778"],"photo_ids_order":["1350202778","1350202780","1350202784","1350202790","1350202916","1350202925"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/426bea73fad25cd932f48e9d030a81f5.jpg","text":"TemporaryFile(/tmp/multipartBody6208623931835670961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976448364,"filename":"image_05042025_23_30_01_6959.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2e778214aaefd5732e3575d23e529f4d.jpg","text":"TemporaryFile(/tmp/multipartBody5661385978483901779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976448364,"filename":"image_05042025_23_31_01_7293.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7176ec704758c9736e9db2ad8dd293b1.jpg","text":"TemporaryFile(/tmp/multipartBody7357744535428478136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976448364,"filename":"image_05042025_23_40_01_8036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6f56d32141c97983803e9120de6f6113.jpg","text":"TemporaryFile(/tmp/multipartBody4886070354042428866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976448364,"filename":"image_05042025_23_32_01_7779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7a661cd58088f8f99c85e91976c756c4.jpg","text":"TemporaryFile(/tmp/multipartBody5336752325232649649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976448364,"filename":"image_05042025_23_35_01_5115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/755ec62402bf5195c85b4c95fc71c87b.jpg","text":"TemporaryFile(/tmp/multipartBody8604106092692383519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976448364,"filename":"image_05042025_23_41_02_2048.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202784","file1":"1350202780","file0":"1350202778","file4":"1350202916","file5":"1350202925","file3":"1350202790"},"map_files_photo_id_array":[{"photo_id":"1350202925","filename":"file5"},{"photo_id":"1350202784","filename":"file2"},{"photo_id":"1350202916","filename":"file4"},{"photo_id":"1350202780","filename":"file1"},{"photo_id":"1350202778","filename":"file0"},{"photo_id":"1350202790","filename":"file3"}],"portfolio_id":22083390,"hashtag_by_photo_ids":[{"1350202925":["hashtag1","hashtag2"]},{"1350202916":["hashtag1","hashtag2"]},{"1350202780":["hashtag1","hashtag2"]},{"1350202790":["hashtag1","hashtag2"]},{"1350202784":["hashtag1","hashtag2"]},{"1350202778":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083390 used, photo_id : ArrayBuffer(1350202925, 1350202916, 1350202780, 1350202790, 1350202784, 1350202778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 63.326998710632324 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:55:03.313768
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31032025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04042025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05042025
  port_id : 22083390
  datou_current_id : 2727227
in upload_from_sqlite, uploading in 22083390
in upload_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;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250307 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250308 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250309 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250310 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250311 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250312 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250313 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250314 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250315 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250316 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250317 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250319 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250320 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250321 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250322 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250323 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250324 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250325 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250326 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250327 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250328 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250329 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250330 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250331 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250401 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250402 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250403 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250404 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250405 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/pi/Desktop/images/05042025/23/29/image_05042025_23_29_01_4031.jpg', 2), ('/home/pi/Desktop/images/05042025/23/28/image_05042025_23_28_02_1033.jpg', 2), ('/home/pi/Desktop/images/05042025/23/26/image_05042025_23_26_01_9266.jpg', 2), ('/home/pi/Desktop/images/05042025/23/25/image_05042025_23_25_01_2331.jpg', 2), ('/home/pi/Desktop/images/05042025/23/20/image_05042025_23_20_01_9129.jpg', 2), ('/home/pi/Desktop/images/05042025/23/19/image_05042025_23_19_01_7237.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/05042025/23/29/image_05042025_23_29_01_4031.jpg', '/home/pi/Desktop/images/05042025/23/28/image_05042025_23_28_02_1033.jpg', '/home/pi/Desktop/images/05042025/23/26/image_05042025_23_26_01_9266.jpg', '/home/pi/Desktop/images/05042025/23/25/image_05042025_23_25_01_2331.jpg', '/home/pi/Desktop/images/05042025/23/20/image_05042025_23_20_01_9129.jpg', '/home/pi/Desktop/images/05042025/23/19/image_05042025_23_19_01_7237.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727227&datou=0
/home/pi/Desktop/images/05042025/23/29/image_05042025_23_29_01_4031.jpg
/home/pi/Desktop/images/05042025/23/28/image_05042025_23_28_02_1033.jpg
/home/pi/Desktop/images/05042025/23/26/image_05042025_23_26_01_9266.jpg
/home/pi/Desktop/images/05042025/23/25/image_05042025_23_25_01_2331.jpg
/home/pi/Desktop/images/05042025/23/20/image_05042025_23_20_01_9129.jpg
/home/pi/Desktop/images/05042025/23/19/image_05042025_23_19_01_7237.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202985","1350203000","1350202972","1350202954","1350202968","1350202961"],"photo_ids_order":["1350202954","1350202961","1350202968","1350202972","1350202985","1350203000"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c6700793856c89e44241f8277f29a5b.jpg","text":"TemporaryFile(/tmp/multipartBody2335329428720375067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976568043,"filename":"image_05042025_23_20_01_9129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/30766f9027504dabda8d8d5c8b2ec642.jpg","text":"TemporaryFile(/tmp/multipartBody2122533520529465416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976568043,"filename":"image_05042025_23_19_01_7237.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cb37809f5170ad87d69c6777cc154069.jpg","text":"TemporaryFile(/tmp/multipartBody474877065074267217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976568043,"filename":"image_05042025_23_25_01_2331.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f02677b9b6ebf670db24bcd7dcd5e1cf.jpg","text":"TemporaryFile(/tmp/multipartBody1009715713754302880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976568043,"filename":"image_05042025_23_29_01_4031.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d8b3fff6b144074126ec9011375110d8.jpg","text":"TemporaryFile(/tmp/multipartBody3846663988315253064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976568043,"filename":"image_05042025_23_26_01_9266.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc492d3a6b94d2b1f78717461dc4bf46.jpg","text":"TemporaryFile(/tmp/multipartBody7625220612048111624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976568043,"filename":"image_05042025_23_28_02_1033.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202968","file1":"1350202961","file0":"1350202954","file4":"1350202985","file5":"1350203000","file3":"1350202972"},"map_files_photo_id_array":[{"photo_id":"1350203000","filename":"file5"},{"photo_id":"1350202968","filename":"file2"},{"photo_id":"1350202985","filename":"file4"},{"photo_id":"1350202961","filename":"file1"},{"photo_id":"1350202954","filename":"file0"},{"photo_id":"1350202972","filename":"file3"}],"portfolio_id":22083390,"hashtag_by_photo_ids":[{"1350202985":["hashtag1","hashtag2"]},{"1350203000":["hashtag1","hashtag2"]},{"1350202972":["hashtag1","hashtag2"]},{"1350202954":["hashtag1","hashtag2"]},{"1350202968":["hashtag1","hashtag2"]},{"1350202961":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083390 used, photo_id : ArrayBuffer(1350202985, 1350203000, 1350202972, 1350202954, 1350202968, 1350202961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.712839126586914 secondes ---
Start to upload photos with parameters : -n test_valcor_dechet_0325_48MP -o DESC -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=60 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2
2025-04-06 23:57:03.735222
  port_id : 22083911
  datou_current_id : 2727256
in upload_from_sqlite, uploading in 22083911
in upload_photo_and_update_logs, uploading 1 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/pi/Desktop/images/06042025/23/52/image_06042025_23_52_01_7239.jpg', 2)]
in upload media
 Upload medias :  ['/home/pi/Desktop/images/06042025/23/52/image_06042025_23_52_01_7239.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727256&datou=0
/home/pi/Desktop/images/06042025/23/52/image_06042025_23_52_01_7239.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350203050"],"photo_id":"1350203050","photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/43b4a3a4c5f89a4055ba0138e310715d.jpg","text":"TemporaryFile(/tmp/multipartBody7064825148690162102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976684543,"filename":"image_06042025_23_52_01_7239.jpg","height":0,"width":0}],"map_files_photo_id":{"file0":"1350203050"},"map_files_photo_id_array":[{"photo_id":"file0","filename":"1350203050"}],"hashtags":[],"portfolio_id":"22083911","result":[],"list_datou_current":[]}'
Result OK !
uploaded 1 photos
time to upload: 15.703619480133057 secondes ---
