zatosource / zato

ESB, SOA, REST, APIs and Cloud Integrations in Python
https://zato.io
GNU Affero General Public License v3.0
1.12k stars 240 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/opt/zato/env/qs-1/config/repo/internal-cache.dat' #1061

Closed aixi88 closed 4 years ago

aixi88 commented 4 years ago

After restarting the docker, port 17010 was inaccessible, and the following error log was found in server.log:

2020-06-19 08:32:52,552 - ^[[1;31mERROR^[[0m - 909:MainThread - zato:0 - Exception in worker process
Traceback (most recent call last):
  File "/opt/zato/3.1.0/code/zato-server/src/zato/server/ext/zunicorn/arbiter.py", line 616, in spawn_worker
    self.cfg.post_fork(self, worker)
  File "/opt/zato/3.1.0/code/zato-server/src/zato/server/base/parallel/__init__.py", line 1026, in post_fork
    ParallelServer.start_server(worker.app.zato_wsgi_app, arbiter.zato_deployment_key)
  File "/opt/zato/3.1.0/code/zato-server/src/zato/server/base/parallel/__init__.py", line 579, in start_server
    is_first, locally_deployed = self._after_init_common(server)
  File "/opt/zato/3.1.0/code/zato-server/src/zato/server/base/parallel/__init__.py", line 430, in _after_init_common
    is_first, locally_deployed = self.maybe_on_first_worker(server, self.kvdb.conn)
  File "/opt/zato/3.1.0/code/zato-server/src/zato/server/base/parallel/__init__.py", line 360, in maybe_on_first_worker
    locally_deployed = import_initial_services_jobs(is_first)
  File "/opt/zato/3.1.0/code/zato-server/src/zato/server/base/parallel/__init__.py", line 317, in import_initial_services_jobs
    internal_service_modules, self.base_dir, self.sync_internal, is_first))
  File "/opt/zato/3.1.0/code/zato-server/src/zato/server/service/store.py", line 520, in import_internal_services
    stat = os.stat(cache_file_path)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/zato/env/qs-1/config/repo/internal-cache.dat'
aixi88 commented 4 years ago

I've used zato for production, can I prevent the system from automatically updating the code when i restart? thanks!

root@mes:~# docker logs -f mes_zato_server.1.n5xa487bpv4ak0ya28do96crn
*** Downloading updates ***
From https://github.com/zatosource/zato
   d442cad10..31908aa13  support/3.1    -> origin/support/3.1
   ed98b5542..2da1cc667  dsuch-f-gh894-sio-refactor -> origin/dsuch-f-gh894-sio-refactor
   ed49f04ab..d10d6fee9  main           -> origin/main
   17119df1b..6892db9ac  support/3.1-v2 -> origin/support/3.1-v2
Updating d442cad10..31908aa13
dsuch commented 4 years ago

Hi @aixi88,

thanks for the report - I can see what is going on and I will have a fix ready soon. My apologies, it was a mistake that I made yesterday.

As for disabling the updates, no, there is no publicly available way to disable it and it is recommended that you do not do it.

Of course, this is open-source software so you are free to achieve it yourself but then you will not be able to get free support for your customised installation through GitHub or the community forum.

Regards.

dsuch commented 4 years ago

The fix is pushed now, please try it out again by restarting your container.

If not using Docker, the updates can be installed per instructions here:

https://zato.io/docs/admin/guide/install/update.html

aixi88 commented 4 years ago

The system has returned to normal, thank you very much!