Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Errors and Solutions

eleanorstuart edited this page Jun 29, 2021 · 15 revisions

Error:

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json: dial unix /var/run/docker.sock: connect: permission denied

Solution:

Add yourself as a Docker user

$ usermod -aG docker user_name

Error:

OSError at /image_upload/

OSError at /image_upload/ [Errno 126] Required key not available: '/usr/src/local-images'

Solution:

This error message was fixed by remounting the shared drive on the profile hosting the web tool and restarting the Docker containers. Make sure the path in the config.py file specified under LOCAL_IMAGE_FOLDER is one that exists, contains the expected files, and is accessible by the computer profile that is hosting the web tool.

Error:

Attempted to read a PyTorch file with version 3, but maximum supported version for reading is 2.

Attempted to read a PyTorch file with version 3, but maximum supported version for reading is 2. Your PyTorch installation may be too old.

Solution:

This error occurred when attempting to add a new trained model to the web tool. The new trained model came from a computer with PyTorch 1.8 and cuda 11, whereas the web tool runs with PyTorch 1.4 and cuda 10.1. New models need to be trained using the same versions as the web tool in order for the web tool to be able to use the new model on images. Retrain the model within the Docker container to ensure that the versions are consistent.

Error:

OperationalError at /image_upload/

GD_app_emimage has no column named coordinates6nm

or other OperationalError message

Solution:

Enter Docker container and run the following:

$ python manage.py makemigrations

$ python manage.py migrate

Some information here.

Error:

"conflicting migrations detected"

Solution:

Enter Docker container and run:

python manage.py makemigrations --merge

Error:

The connection was reset

The connection was reset. The connection to the server was reset while the page was loading.

Solution:

This likely means that Django is not running. Rerun bash scripts and then reload the page.

Error:

Image upload page with empty dropdown

Webtool and image upload page works but in the local folder upload dropdown no files are listed.

Solution:

This likely means that the path in the config.py file to the shared drive folder needs to be updated (typo or it leads to the wrong file).

Error:

django.db.migrations.exceptions.NodeNotFoundError: Migration GDapp.0014_merge_20210106_1507 dependencies reference nonexistent parent node

Solution:

Removed new migrations and deleted pycache.

Clone this wiki locally