Just-specify7-specify7-worker-1 server issue

Hi,
I have two separate instances of Specify 7 running on identical servers. However, on one of the instances, the container just-specify7-specify7-worker-1 keeps restarting continuously. Below is a comparison of both instances — as you can see, one is stable and running without issues, while the other is encountering persistent restarts. Any ideas?

Running perfect:

Keeps restarting on a loop:

Hi @ray,

In situations like this, the logs are really key in determining what is going on. If you click “view log” for the restarting container in the second instance, it will likely show that an error is occurring and then we can troubleshoot further based on that error.

Yep, I did tried that before posting this topic, the logs are empty.

Also, if I do inspect, the settings I’m seeing are not reading from the actual settings file like the other containers.

inspect.txt (12.2 KB)

Hi Ray,

If I understand you correctly, if you inspect the failing container, it returns the placeholder environment variables, however if you do an inspect on the container that is properly running (the first screenshot) it returns the settings for your setup?

I believe the issue then is that the second container will continuously fail because the placeholder environment variables are not valid in isolation (database routes, asset server url etc), and the cause would be that the environmental variables are not being read in properly in the second example. You mentioned that these are on two different (identical) servers, could it be that the worker container is missing a reference to environmental variables in the compose? The specify7 (non-worker) container seems to be running fine in the second instance and they use the same image.

Hi Mark, your first comment is correct.

Do you mean that perhaps some of the variables on the failing container are not properly set?

Yes, I believe that is a likely cause. If the variables are not properly set, then various processes will fail (the worker won’t be able to successfully connect to the database for example). When those processes fail, the container will often continuously restart in a loop. Based on the output of the inspect command for the failing container, it seems like the placeholder values are being used.

Are you using a compose.yml file for these containers? The first thing I would check is that the environment variables are being set for the main specify7 container and the worker on the second server. Since the main specify7 container has started successfully, I think it is safe to conclude that your variables are all correct and functioning, we just need to be sure they are properly referenced by the worker container.

1 Like

Thanks for the help! I went ahead a did a container rebuild and that fixed the issues.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.