"Uncaught signal: 13, pid=397, tid=397, fault_addr=0."

My Cloud Run works fine, but when my code is done, I am getting this error

Solved Solved
1 4 235
1 ACCEPTED SOLUTION

I decided to use a job.All fine. The topic can be close

View solution in original post

4 REPLIES 4

Roderick
Community Manager
Community Manager

Thanks for your questions @surisua16 - are there any additional details you can provide?

Thank you, Roderick, for picking up my question.

I have app (service), that does some manipulation by Selenium.
Here is my dockerfile:

 

# Use an official Python runtime as a base image
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /usr/src/app

# Install system dependencies for Google Chrome, wget, and curl
RUN apt-get update && apt-get install -y \
    wget \
    gnupg \
    unzip \
    curl && rm -rf /var/lib/apt/lists/*

# Add Google Chrome to the repositories
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
    && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

# Install Google Chrome
RUN apt-get update && apt-get install -y google-chrome-stable

# Copy the dependencies file to the working directory
COPY requirements.txt .

# Install any Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy main.py to the working directory
COPY main.py .

# Copy all Python files to the working directory
COPY *.py ./

EXPOSE 8888

# Specify the command to run on container start
CMD ["python", "./main.py"]

 

 requirements.txt:

 

Flask==3.0.2
pyotp==2.9.0
requests==2.31.0
seleniumbase==4.23.5
google-cloud-secret-manager==2.18.1

 


here is my last logs:

 

2024-02-27 18:27:39.886 EET
GET200656 B45.4 spython-requests/2.31.0 https://************************ 
2024-02-27 18:27:40.640 EET
 * Debugger is active!
2024-02-27 18:27:40.647 EET
 * Debugger PIN: 119-806-455
2024-02-27 18:27:40.659 EET
2024-02-27 16:27:40,659 - [INFO] - (main.py:15) - ~~~*~~~~*~~~ Starting app ~~~*~~~~*~~~
2024-02-27 18:27:42.453 EET
Warning: uc_driver not found. Getting it now:
2024-02-27 18:27:42.453 EET
*** chromedriver to download = 121.0.6167.184 (Previous Version)
2024-02-27 18:27:42.453 EET
Downloading chromedriver-linux64.zip from:
2024-02-27 18:27:42.453 EET
https://storage.googleapis.com/chrome-for-testing-public/121.0.6167.184/linux64/chromedriver-linux64.zip ...
2024-02-27 18:27:42.707 EET
Download Complete!
2024-02-27 18:27:42.712 EET
Extracting ['chromedriver'] from chromedriver-linux64.zip ...
2024-02-27 18:27:42.865 EET
Unzip Complete!
2024-02-27 18:27:42.865 EET
The file [uc_driver] was saved to:
2024-02-27 18:27:42.865 EET
/usr/local/lib/python3.9/site-packages/seleniumbase/drivers/uc_driver
2024-02-27 18:27:42.865 EET
Making [uc_driver 121.0.6167.184] executable ...
2024-02-27 18:27:42.865 EET
[uc_driver 121.0.6167.184] is now ready for use!
2024-02-27 18:27:42.868 EET
*** chromedriver to download = 121.0.6167.184 (Previous Version)
2024-02-27 18:27:42.868 EET
Downloading chromedriver-linux64.zip from:
2024-02-27 18:27:42.868 EET
https://storage.googleapis.com/chrome-for-testing-public/121.0.6167.184/linux64/chromedriver-linux64.zip ...
2024-02-27 18:27:43.096 EET
Download Complete!
2024-02-27 18:27:43.097 EET
Extracting ['chromedriver'] from chromedriver-linux64.zip ...
2024-02-27 18:27:43.255 EET
Unzip Complete!
2024-02-27 18:27:43.255 EET
The file [chromedriver] was saved to:
2024-02-27 18:27:43.255 EET
/usr/local/lib/python3.9/site-packages/seleniumbase/drivers/chromedriver
2024-02-27 18:27:43.255 EET
Making [chromedriver 121.0.6167.184] executable ...
2024-02-27 18:27:43.255 EET
[chromedriver 121.0.6167.184] is now ready for use!
2024-02-27 18:32:40.009 EET
Uncaught signal: 13, pid=364, tid=364, fault_addr=0.
2024-02-27 18:32:40.078 EET
169.254.1.1 - - [27/Feb/2024 16:32:40] "GET /***** HTTP/1.1" 200 -
2024-02-27 18:32:40.078 EET
2024-02-27 16:32:40,077 - [INFO] - (_internal.py:96) - 169.254.1.1 - - [27/Feb/2024 16:32:40] "GET /****** HTTP/1.1" 200 -

 

Tell me please, is there anything else I can provide for you?

All works (my app/code) fine, but I see this error, and I want to do something to get rid of this error

I decided to use a job.All fine. The topic can be close