2023-07-09 15:51:06,729 - INFO - Function decode-function dequed from queue:
2023-07-09 15:51:06,729 - INFO - Function decode-function started execution
2023-07-09 15:51:23,927 - INFO - Function decode-function completed execution
2023-07-09 15:51:23,930 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-09 15:51:23,930 - INFO - Function image-bilateral-filter started execution
2023-07-09 15:51:50,527 - INFO - Function image-bilateral-filter completed execution
2023-07-09 15:51:50,529 - INFO - Function encode-function dequed from queue:
2023-07-09 15:51:50,529 - INFO - Function encode-function started execution
2023-07-09 15:52:06,452 - INFO - Function encode-function completed execution

2023-07-10 09:14:32,019 - INFO - Function decode-function dequed from queue:
2023-07-10 09:14:32,019 - INFO - Function decode-function started execution
2023-07-10 09:14:37,826 - INFO - Function decode-function completed execution
2023-07-10 09:14:37,829 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:14:37,830 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:14:44,098 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:14:44,099 - INFO - Function encode-function dequed from queue:
2023-07-10 09:14:44,099 - INFO - Function encode-function started execution
2023-07-10 09:14:48,562 - INFO - Function encode-function completed execution

2023-07-10 09:17:42,030 - INFO - Function decode-function dequed from queue:
2023-07-10 09:17:42,031 - INFO - Function decode-function started execution
2023-07-10 09:17:47,152 - INFO - Function decode-function completed execution
2023-07-10 09:17:47,155 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:17:47,156 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:17:54,471 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:17:54,472 - INFO - Function encode-function dequed from queue:
2023-07-10 09:17:54,472 - INFO - Function encode-function started execution
2023-07-10 09:17:59,897 - INFO - Function encode-function completed execution

2023-07-10 09:27:10,941 - INFO - Function decode-function dequed from queue:
2023-07-10 09:27:10,952 - INFO - Function decode-function started execution
2023-07-10 09:27:15,823 - INFO - Function decode-function completed execution
2023-07-10 09:27:15,825 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:27:15,825 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:27:22,290 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:27:22,291 - INFO - Function encode-function dequed from queue:
2023-07-10 09:27:22,291 - INFO - Function encode-function started execution
2023-07-10 09:27:26,216 - INFO - Function encode-function completed execution

2023-07-10 09:28:31,280 - INFO - Function decode-function dequed from queue:
2023-07-10 09:28:31,280 - INFO - Function decode-function started execution
2023-07-10 09:28:36,019 - INFO - Function decode-function completed execution
2023-07-10 09:28:36,020 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:28:36,021 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:28:42,363 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:28:42,365 - INFO - Function encode-function dequed from queue:
2023-07-10 09:28:42,366 - INFO - Function encode-function started execution
2023-07-10 09:28:46,095 - INFO - Function encode-function completed execution

2023-07-10 09:31:47,633 - INFO - Function decode-function dequed from queue:
2023-07-10 09:31:47,633 - INFO - Function decode-function started execution
2023-07-10 09:31:53,248 - INFO - Function decode-function completed execution
2023-07-10 09:31:53,251 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:31:53,251 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:31:58,971 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:31:58,972 - INFO - Function encode-function dequed from queue:
2023-07-10 09:31:58,972 - INFO - Function encode-function started execution
2023-07-10 09:32:04,408 - INFO - Function encode-function completed execution

2023-07-10 09:33:45,850 - INFO - Function decode-function dequed from queue:
2023-07-10 09:33:45,850 - INFO - Function decode-function started execution
2023-07-10 09:33:51,190 - INFO - Function decode-function completed execution
2023-07-10 09:33:51,192 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:33:51,192 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:33:57,826 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:33:57,827 - INFO - Function encode-function dequed from queue:
2023-07-10 09:33:57,827 - INFO - Function encode-function started execution
2023-07-10 09:34:02,892 - INFO - Function encode-function completed execution

2023-07-10 09:34:43,087 - INFO - Function decode-function dequed from queue:
2023-07-10 09:34:43,087 - INFO - Function decode-function started execution
2023-07-10 09:34:48,983 - INFO - Function decode-function completed execution
2023-07-10 09:34:48,985 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:34:48,985 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:34:54,875 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:34:54,877 - INFO - Function encode-function dequed from queue:
2023-07-10 09:34:54,877 - INFO - Function encode-function started execution
2023-07-10 09:34:59,635 - INFO - Function encode-function completed execution

2023-07-10 09:35:21,503 - INFO - Function decode-function dequed from queue:
2023-07-10 09:35:21,503 - INFO - Function decode-function started execution
2023-07-10 09:35:27,702 - INFO - Function decode-function completed execution
2023-07-10 09:35:27,704 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:35:27,704 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:35:34,777 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:35:34,778 - INFO - Function encode-function dequed from queue:
2023-07-10 09:35:34,778 - INFO - Function encode-function started execution
2023-07-10 09:35:40,218 - INFO - Function encode-function completed execution

2023-07-10 09:36:28,894 - INFO - Function decode-function dequed from queue:
2023-07-10 09:36:28,894 - INFO - Function decode-function started execution
2023-07-10 09:36:34,917 - INFO - Function decode-function completed execution
2023-07-10 09:36:34,919 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:36:34,919 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:36:42,199 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:36:42,200 - INFO - Function encode-function dequed from queue:
2023-07-10 09:36:42,200 - INFO - Function encode-function started execution
2023-07-10 09:36:46,215 - INFO - Function encode-function completed execution

2023-07-10 09:39:43,216 - INFO - Function decode-function dequed from queue:
2023-07-10 09:39:43,216 - INFO - Function decode-function started execution
2023-07-10 09:39:47,239 - INFO - Function decode-function completed execution
2023-07-10 09:39:47,241 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:39:47,241 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:39:50,417 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:39:50,418 - INFO - Function encode-function dequed from queue:
2023-07-10 09:39:50,418 - INFO - Function encode-function started execution
2023-07-10 09:39:53,025 - INFO - Function encode-function completed execution

2023-07-10 09:39:53,343 - INFO - Function decode-function dequed from queue:
2023-07-10 09:39:53,344 - INFO - Function decode-function started execution
2023-07-10 09:39:57,592 - INFO - Function decode-function completed execution
2023-07-10 09:39:57,594 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:39:57,594 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:40:01,215 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:40:01,216 - INFO - Function encode-function dequed from queue:
2023-07-10 09:40:01,216 - INFO - Function encode-function started execution
2023-07-10 09:40:04,219 - INFO - Function encode-function completed execution

2023-07-10 09:40:04,442 - INFO - Function decode-function dequed from queue:
2023-07-10 09:40:04,442 - INFO - Function decode-function started execution
2023-07-10 09:40:08,676 - INFO - Function decode-function completed execution
2023-07-10 09:40:08,678 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:40:08,678 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:40:11,983 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:40:11,985 - INFO - Function encode-function dequed from queue:
2023-07-10 09:40:11,985 - INFO - Function encode-function started execution
2023-07-10 09:40:14,752 - INFO - Function encode-function completed execution

2023-07-10 09:40:14,965 - INFO - Function decode-function dequed from queue:
2023-07-10 09:40:14,965 - INFO - Function decode-function started execution
2023-07-10 09:40:19,271 - INFO - Function decode-function completed execution
2023-07-10 09:40:19,273 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:40:19,274 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:40:22,651 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:40:22,653 - INFO - Function encode-function dequed from queue:
2023-07-10 09:40:22,653 - INFO - Function encode-function started execution
2023-07-10 09:40:25,659 - INFO - Function encode-function completed execution

2023-07-10 09:40:25,865 - INFO - Function decode-function dequed from queue:
2023-07-10 09:40:25,866 - INFO - Function decode-function started execution
2023-07-10 09:40:29,403 - INFO - Function decode-function completed execution
2023-07-10 09:40:29,405 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-10 09:40:29,405 - INFO - Function image-bilateral-filter started execution
2023-07-10 09:40:32,193 - INFO - Function image-bilateral-filter completed execution
2023-07-10 09:40:32,194 - INFO - Function encode-function dequed from queue:
2023-07-10 09:40:32,194 - INFO - Function encode-function started execution
2023-07-10 09:40:34,558 - INFO - Function encode-function completed execution


2023-07-11 01:20:19,599 - INFO - Function decode-function dequed from queue:
2023-07-11 01:20:19,599 - INFO - Json request for action decode-function is {'filename': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4', 'parts': 10}
2023-07-11 01:20:19,599 - INFO - Function decode-function started execution
2023-07-11 01:20:31,596 - INFO - Function decode-function completed execution
2023-07-11 01:20:31,599 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-11 01:20:31,599 - INFO - Json request for action image-bilateral-filter is {'activation_id': 'e7bacc36986d43adbacc36986d53adfb', 'file_link': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4', 'image_url_links': ['Image0.jpg', 'Image1.jpg', 'Image2.jpg', 'Image3.jpg', 'Image4.jpg', 'Image5.jpg', 'Image6.jpg', 'Image7.jpg', 'Image8.jpg', 'Image9.jpg'], 'parts': 10}
2023-07-11 01:20:31,600 - INFO - Function image-bilateral-filter started execution
2023-07-11 01:20:45,694 - INFO - Function image-bilateral-filter completed execution
2023-07-11 01:20:45,697 - INFO - Function encode-function dequed from queue:
2023-07-11 01:20:45,697 - INFO - Json request for action encode-function is {'activation_id': '8ce2c21f194e427ca2c21f194e327cf2', 'bilateral_filtered_image_links': ['bilateral_filtered_image_0.jpg', 'bilateral_filtered_image_1.jpg', 'bilateral_filtered_image_2.jpg', 'bilateral_filtered_image_3.jpg', 'bilateral_filtered_image_4.jpg', 'bilateral_filtered_image_5.jpg', 'bilateral_filtered_image_6.jpg', 'bilateral_filtered_image_7.jpg', 'bilateral_filtered_image_8.jpg', 'bilateral_filtered_image_9.jpg'], 'parts': 10}
2023-07-11 01:20:45,697 - INFO - Function encode-function started execution
2023-07-11 01:20:57,901 - INFO - Function encode-function completed execution

2023-07-11 01:41:16,452 - INFO - Function decode-function dequed from queue:
2023-07-11 01:41:16,452 - INFO - Json request for action decode-function is {'filename': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4', 'parts': 5}
2023-07-11 01:41:16,452 - INFO - Function decode-function started execution
2023-07-11 01:41:26,662 - INFO - Function decode-function completed execution
2023-07-11 01:41:26,664 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-11 01:41:26,664 - INFO - Json request for action image-bilateral-filter is {'activation_id': '09c36ff88f854558836ff88f85055802', 'file_link': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4', 'image_url_links': ['Image0.jpg', 'Image1.jpg', 'Image2.jpg', 'Image3.jpg', 'Image4.jpg'], 'parts': 5}
2023-07-11 01:41:26,664 - INFO - Function image-bilateral-filter started execution
2023-07-11 01:41:40,647 - INFO - Function image-bilateral-filter completed execution
2023-07-11 01:41:40,649 - INFO - Function encode-function dequed from queue:
2023-07-11 01:41:40,649 - INFO - Json request for action encode-function is {'activation_id': '9d54f8655e2f46b594f8655e2ff6b5db', 'bilateral_filtered_image_links': ['bilateral_filtered_image_0.jpg', 'bilateral_filtered_image_1.jpg', 'bilateral_filtered_image_2.jpg', 'bilateral_filtered_image_3.jpg', 'bilateral_filtered_image_4.jpg'], 'parts': 5}
2023-07-11 01:41:40,649 - INFO - Function encode-function started execution
2023-07-11 01:41:51,986 - INFO - Function encode-function completed execution

2023-07-11 02:21:51,515 - INFO - Function decode-function dequed from queue:
2023-07-11 02:21:51,516 - INFO - Function decode-function started execution
2023-07-11 02:22:04,238 - INFO - Function decode-function completed execution || Function ID : 53d371ed3f1f4edb9371ed3f1f9edbec
2023-07-11 02:22:04,241 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-11 02:22:04,241 - INFO - Function image-bilateral-filter started execution
2023-07-11 02:22:16,203 - INFO - Function image-bilateral-filter completed execution || Function ID : 0b4b888983014d928b88898301cd92b9
2023-07-11 02:22:16,205 - INFO - Function encode-function dequed from queue:
2023-07-11 02:22:16,205 - INFO - Function encode-function started execution
2023-07-11 02:22:27,840 - INFO - Function encode-function completed execution || Function ID : 26f86408686448d2b864086864a8d271

2023-07-11 03:01:36,994 - INFO - Function decode-function dequed from queue:
2023-07-11 03:01:36,994 - INFO - Function decode-function started execution
2023-07-11 03:01:41,103 - INFO - Function decode-function completed execution || Function ID : c9b25f01ae1942e0b25f01ae1902e009
2023-07-11 03:01:41,106 - INFO - Function image-bilateral-filter dequed from queue:
2023-07-11 03:01:41,107 - INFO - Function image-bilateral-filter started execution
2023-07-11 03:01:53,549 - INFO - Function image-bilateral-filter completed execution || Function ID : fd2d60379edd40b1ad60379edd90b139
2023-07-11 03:01:53,551 - INFO - Function encode-function dequed from queue:
2023-07-11 03:01:53,552 - INFO - Function encode-function started execution
2023-07-11 03:02:04,103 - INFO - Function encode-function completed execution || Function ID : e3d63d9f4f9e4ae5963d9f4f9ebae524
2023-07-11 03:02:04,105 - INFO - DAG Unique ID ed67c565-1788-4238-af03-6c96281a53a8

2023-07-11 06:00:34,380 - INFO - Function fetch_sentences dequed from queue:
2023-07-11 06:00:34,381 - INFO - Function fetch_sentences started execution
2023-07-11 06:00:37,186 - INFO - Function fetch_sentences completed execution || Function ID : 8a922842f6fd4a00922842f6fd7a00db
2023-07-11 06:00:37,189 - INFO - Function calculate_sentiment dequed from queue:
2023-07-11 06:00:37,190 - INFO - Function calculate_sentiment started execution
2023-07-11 06:00:37,407 - INFO - Function calculate_sentiment completed execution || Function ID : 0e8a567f24924b788a567f2492fb78e5
2023-07-11 06:00:37,409 - INFO - Function create_sentiment_report dequed from queue:
2023-07-11 06:00:37,410 - INFO - Function create_sentiment_report started execution
2023-07-11 06:00:45,856 - INFO - Function create_sentiment_report completed execution || Function ID : 53fceeb33d994184bceeb33d99e18463
2023-07-11 06:00:45,858 - INFO - DAG Unique ID 349946d3-bb6e-4efc-b2e6-ad62cd14d123
2023-07-11 06:00:45,869 - INFO - 10.59.5.186 - - [11/Jul/2023 06:00:45] "POST /run/text_sentiment_analysis_trigger HTTP/1.1" 200 -
2024-09-06 20:57:54,057 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.83.252:5001
2024-09-06 20:57:54,057 - INFO - [33mPress CTRL+C to quit[0m
2024-09-07 10:09:39,792 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.83.252:5001
2024-09-07 10:09:39,792 - INFO - [33mPress CTRL+C to quit[0m
2024-09-07 10:12:05,444 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.83.252:5001
2024-09-07 10:12:05,444 - INFO - [33mPress CTRL+C to quit[0m
2024-09-07 10:12:19,587 - INFO - 127.0.0.1 - - [07/Sep/2024 10:12:19] "GET / HTTP/1.1" 200 -
2024-09-07 10:41:55,544 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.83.252:5001
2024-09-07 10:41:55,544 - INFO - [33mPress CTRL+C to quit[0m
2024-09-07 10:41:58,340 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "trigger_gateway.py", line 84, in register_function
    shutil.copy(image_build_script, destination)
  File "/usr/lib/python3.8/shutil.py", line 409, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/shutil.py", line 259, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'buildAndPush.sh'
2024-09-07 10:41:58,341 - INFO - 127.0.0.1 - - [07/Sep/2024 10:41:58] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-07 10:46:11,792 - INFO - 127.0.0.1 - - [07/Sep/2024 10:46:11] "POST /register/function/test HTTP/1.1" 200 -
2024-09-07 10:49:27,809 - INFO - 127.0.0.1 - - [07/Sep/2024 10:49:27] "POST /register/trigger/ HTTP/1.1" 200 -
2024-09-07 10:50:04,576 - INFO - 127.0.0.1 - - [07/Sep/2024 10:50:04] "GET /run/test HTTP/1.1" 200 -
2024-09-07 11:09:14,116 - INFO - 127.0.0.1 - - [07/Sep/2024 11:09:14] "POST /register/function/test HTTP/1.1" 200 -
2024-09-07 11:09:43,705 - INFO - 127.0.0.1 - - [07/Sep/2024 11:09:43] "POST /register/function/test HTTP/1.1" 200 -
2024-09-07 11:14:08,110 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.83.252:5001
2024-09-07 11:14:08,110 - INFO - [33mPress CTRL+C to quit[0m
2024-09-07 11:14:41,516 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 883, in full_dispatch_request
    return self.finalize_request(rv)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 902, in finalize_request
    response = self.make_response(rv)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1211, in make_response
    raise TypeError(
TypeError: The view function did not return a valid response. The return type must be a string, dict, list, tuple with headers or status, Response instance, or WSGI callable, but it was a bool.
2024-09-07 11:14:41,518 - INFO - 127.0.0.1 - - [07/Sep/2024 11:14:41] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-07 11:20:02,065 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 883, in full_dispatch_request
    return self.finalize_request(rv)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 902, in finalize_request
    response = self.make_response(rv)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1211, in make_response
    raise TypeError(
TypeError: The view function did not return a valid response. The return type must be a string, dict, list, tuple with headers or status, Response instance, or WSGI callable, but it was a bool.
2024-09-07 11:20:02,066 - INFO - 127.0.0.1 - - [07/Sep/2024 11:20:02] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-07 11:20:17,687 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.83.252:5001
2024-09-07 11:20:17,687 - INFO - [33mPress CTRL+C to quit[0m
2024-09-07 11:20:20,816 - INFO - 127.0.0.1 - - [07/Sep/2024 11:20:20] "POST /register/function/test HTTP/1.1" 200 -
2024-09-08 17:22:07,463 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 17:22:07,464 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 18:33:25,717 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 18:33:25,718 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 18:33:40,792 - INFO - 127.0.0.1 - - [08/Sep/2024 18:33:40] "GET / HTTP/1.1" 200 -
2024-09-08 18:36:53,886 - INFO - 127.0.0.1 - - [08/Sep/2024 18:36:53] "[31m[1mGET /register/function/test HTTP/1.1[0m" 405 -
2024-09-08 18:37:11,780 - INFO - 127.0.0.1 - - [08/Sep/2024 18:37:11] "[31m[1mGET /register/function/testaction HTTP/1.1[0m" 405 -
2024-09-08 18:39:36,203 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/trigger_gateway.py", line 125, in register_function
    cursor = mycol.insert_one(document)
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/collection.py", line 658, in insert_one
    self._insert_one(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/collection.py", line 598, in _insert_one
    self.__database.client._retryable_write(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1575, in _retryable_write
    return self._retry_with_session(retryable, func, s, bulk, operation, operation_id)
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1461, in _retry_with_session
    return self._retry_internal(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/_csot.py", line 108, in csot_wrapper
    return func(self, *args, **kwargs)
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1496, in _retry_internal
    return _ClientConnectionRetryable(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 2353, in run
    return self._read() if self._is_read else self._write()
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 2456, in _write
    self._server = self._get_server()
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 2439, in _get_server
    return self._client._select_server(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1322, in _select_server
    server = topology.select_server(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 368, in select_server
    server = self._select_server(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 346, in _select_server
    servers = self.select_servers(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 253, in select_servers
    server_descriptions = self._select_servers_loop(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 303, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 66dd7eca7203574832215152, topology_type: Unknown, servers: [<ServerDescription ('127.0.0.1', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('127.0.0.1:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/trigger_gateway.py", line 132, in register_function
    return json.dumps(data)
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ServerSelectionTimeoutError is not JSON serializable
2024-09-08 18:39:36,211 - INFO - 127.0.0.1 - - [08/Sep/2024 18:39:36] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-08 18:48:00,771 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 18:48:00,772 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 18:48:41,473 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/trigger_gateway.py", line 125, in register_function
    cursor = mycol.insert_one(document)
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/collection.py", line 658, in insert_one
    self._insert_one(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/collection.py", line 598, in _insert_one
    self.__database.client._retryable_write(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1575, in _retryable_write
    return self._retry_with_session(retryable, func, s, bulk, operation, operation_id)
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1461, in _retry_with_session
    return self._retry_internal(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/_csot.py", line 108, in csot_wrapper
    return func(self, *args, **kwargs)
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1496, in _retry_internal
    return _ClientConnectionRetryable(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 2353, in run
    return self._read() if self._is_read else self._write()
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 2456, in _write
    self._server = self._get_server()
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 2439, in _get_server
    return self._client._select_server(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1322, in _select_server
    server = topology.select_server(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 368, in select_server
    server = self._select_server(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 346, in _select_server
    servers = self.select_servers(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 253, in select_servers
    server_descriptions = self._select_servers_loop(
  File "/home/njl/.local/lib/python3.8/site-packages/pymongo/topology.py", line 303, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 66dd80eb24d7e36fd29055ba, topology_type: Unknown, servers: [<ServerDescription ('127.0.0.1', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('127.0.0.1:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/trigger_gateway.py", line 132, in register_function
    return json.dumps(data)
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ServerSelectionTimeoutError is not JSON serializable
2024-09-08 18:48:41,481 - INFO - 127.0.0.1 - - [08/Sep/2024 18:48:41] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-08 19:13:31,791 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 19:13:31,792 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 19:14:20,929 - INFO - 127.0.0.1 - - [08/Sep/2024 19:14:20] "POST /register/function/test HTTP/1.1" 200 -
2024-09-08 19:14:58,613 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 19:14:58,614 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 19:16:22,611 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 19:16:22,612 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 19:16:49,244 - INFO - 127.0.0.1 - - [08/Sep/2024 19:16:49] "POST /register/function/test HTTP/1.1" 200 -
2024-09-08 19:19:13,139 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 19:19:13,140 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 19:19:19,876 - INFO - 127.0.0.1 - - [08/Sep/2024 19:19:19] "POST /register/function/test HTTP/1.1" 200 -
2024-09-08 19:21:49,801 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 19:21:49,801 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 19:21:57,332 - INFO - 127.0.0.1 - - [08/Sep/2024 19:21:57] "POST /register/function/test HTTP/1.1" 200 -
2024-09-08 19:22:19,262 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-08 19:22:19,263 - INFO - [33mPress CTRL+C to quit[0m
2024-09-08 19:22:21,008 - INFO - 127.0.0.1 - - [08/Sep/2024 19:22:21] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 09:48:26,307 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 09:48:26,308 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 09:51:35,450 - INFO - 127.0.0.1 - - [09/Sep/2024 09:51:35] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 09:52:04,879 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/trigger_gateway.py", line 84, in register_function
    shutil.copy(image_build_script, destination)
  File "/usr/lib/python3.8/shutil.py", line 409, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/shutil.py", line 259, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/buildAndPush.sh'
2024-09-09 09:52:04,881 - INFO - 127.0.0.1 - - [09/Sep/2024 09:52:04] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-09 09:52:31,477 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/trigger_gateway.py", line 84, in register_function
    shutil.copy(image_build_script, destination)
  File "/usr/lib/python3.8/shutil.py", line 409, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/shutil.py", line 259, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/buildAndPush.sh'
2024-09-09 09:52:31,479 - INFO - 127.0.0.1 - - [09/Sep/2024 09:52:31] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-09 09:52:42,141 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 09:52:42,142 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 09:52:45,435 - ERROR - Exception on /register/function/test [POST]
Traceback (most recent call last):
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/njl/.local/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/trigger_gateway.py", line 84, in register_function
    shutil.copy(image_build_script, destination)
  File "/usr/lib/python3.8/shutil.py", line 409, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/shutil.py", line 259, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/njl/DAGit-Serverless-Applications-as-a-Service/controlplane/buildAndPush.sh'
2024-09-09 09:52:45,437 - INFO - 127.0.0.1 - - [09/Sep/2024 09:52:45] "[35m[1mPOST /register/function/test HTTP/1.1[0m" 500 -
2024-09-09 09:54:30,834 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 09:54:30,835 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 09:54:37,000 - INFO - 127.0.0.1 - - [09/Sep/2024 09:54:37] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 09:57:57,407 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 09:57:57,408 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 09:58:22,580 - INFO - 127.0.0.1 - - [09/Sep/2024 09:58:22] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 10:01:02,104 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 10:01:02,105 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 10:01:14,900 - INFO - 127.0.0.1 - - [09/Sep/2024 10:01:14] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 10:01:59,293 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 10:01:59,294 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 10:02:09,629 - INFO - 127.0.0.1 - - [09/Sep/2024 10:02:09] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 10:02:22,240 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 10:02:22,241 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 10:02:29,111 - INFO - 127.0.0.1 - - [09/Sep/2024 10:02:29] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 10:06:25,112 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 10:06:25,113 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 10:06:39,050 - INFO - 127.0.0.1 - - [09/Sep/2024 10:06:39] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 10:07:47,919 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 10:07:47,920 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 10:07:57,570 - INFO - 127.0.0.1 - - [09/Sep/2024 10:07:57] "POST /register/function/test HTTP/1.1" 200 -
2024-09-09 10:10:39,114 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5001
 * Running on http://10.16.80.204:5001
2024-09-09 10:10:39,115 - INFO - [33mPress CTRL+C to quit[0m
2024-09-09 10:11:10,820 - INFO - 127.0.0.1 - - [09/Sep/2024 10:11:10] "POST /register/function/test HTTP/1.1" 200 -
