Mantis - Resin
Viewing Issue Advanced Details
5550 minor always 10-10-13 10:21 10-22-13 10:40
nam  
ferg  
normal  
closed  
fixed  
none    
none 5.0  
0005550: resin fails to start if internal git objects are corrupted
(rep by G. Trester)

1. Resin running in VM.
2. Hard shutdown of VM.
3. VM restart.
4. Resin fails to start up.

> The file that causes the crash is:
>
> resin-data/app-0/.git/objects/ac/34170f8790f7e599dde5d99d36f2a5db3f0451
>
> It is empty so it's not a valid ZLIB compressed file. The server has plenty of free space so that couldn't have caused the problem.
>
>
> There are a few more empty files:
>
> $ ls -l `find resin-data -type f -size 0`
> -rw-r--r--. 1 root root 0 Oct 10 17:53 resin-data/app-0.cache
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/1a/581325fc61368acbde1231ee7218374dabf0a4
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/3c/9e6b72611762b308ed46e325ccdd85d99f7eeb
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/5d/5ea828b0718d51fc5b28e9ecbdd26fc01e2274
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/62/e49e7934697c15db2ceb0993ff32fb6526054a
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/72/e9ec15a0bcd3d59200778eccf7bbb667378176
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/93/91e2133877843681effc71d7655fd1c82b02e8
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/a0/2214cde1db45c99401acf5e5077cc1efdb997b
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/ac/34170f8790f7e599dde5d99d36f2a5db3f0451
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/c5/fb03e2d4cbbd6de7aad7a0dac50c248fc50fcc
> -rw-r--r--. 1 root root 0 Oct 9 16:48 resin-data/app-0/.git/objects/f3/10307038e9eb01ac27d37f6a012bf9964e99bc
> -rw-r--r--. 1 root root 0 Oct 10 17:53 resin-data/app-0/tmp/temp_file
>


io.baratine.core.ServiceExecutionException: com.caucho.env.repository.RepositoryException
  at com.caucho.ramp.message.QueryRefFuture.get()
  at com.caucho.ramp.message.AbstractQueryFutureMessage.offerAndGet()
  at com.caucho.env.repository.RepositoryService__MakaiProxy.readLocalTagMap()
  at com.caucho.env.repository.AbstractRepository.loadLocalRoot()
  at com.caucho.server.repository.ClusterRepository.start()
  at com.caucho.env.repository.RepositorySystem.start()
  ...

Caused by ...

Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
  at java.util.zip.InflaterInputStream.fill()
  at java.util.zip.InflaterInputStream.read()
  at java.util.zip.InflaterInputStream.read()
  at com.caucho.env.git.GitObjectStream.<init>
  at com.caucho.env.git.GitObjectStream.<init>
  at com.caucho.env.git.GitObjectStream.open(GitSystem.java:389)
  at com.caucho.env.git.GitObjectStream.parseCommit(GitSystem.java:231)
  ...

There are no notes attached to this issue.