Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea container crashes and restarts #4024

Open
jonnyry opened this issue Jul 9, 2024 · 5 comments
Open

Gitea container crashes and restarts #4024

jonnyry opened this issue Jul 9, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@jonnyry
Copy link
Collaborator

jonnyry commented Jul 9, 2024

Using Gitea workspace service 1.0.2 on Azure TRE 0.18.0:

(crashes with similar errors also seen with the Gitea shared service)

App is functional, though crashes goes offline, and then restarts - crash usually happens at first startup, but then can happen intermittently after that with no predictable trigger.

Suspicious that it might be related to the Azure Files mount - with it being an SMB mount and not a local disk - but don't have anything directly pointing to that.

image

@tim-allen-ck
Copy link
Collaborator

Any chance you can get that log file from the container?

@jonnyry
Copy link
Collaborator Author

jonnyry commented Jul 19, 2024

Yes, please see attached:

gitea-shared-service-log-19-07-2024.txt

@jonnyry
Copy link
Collaborator Author

jonnyry commented Jul 19, 2024

I've switched the file storage to an NFS mount (Storage Account Premium tier), rather than using the default SMB mount, and seeing whether that makes a difference.

Few links that hint to the problem -

From Mount Azure Storage as a local share in App Service:

It isn't recommended to use storage mounts for local databases (such as SQLite) or for any other applications and components that rely on file handles and locks.

And from Gitea docs, which indicate locks are being used:

In most cases, it's caused by broken NFS lock system

@marrobi marrobi moved this to Up Next in Azure TRE - Engineering Sep 5, 2024
@tim-allen-ck tim-allen-ck added the bug Something isn't working label Sep 5, 2024
@tim-allen-ck
Copy link
Collaborator

@jonnyry any update on this, did you manage to get anywhere

@jonnyry
Copy link
Collaborator Author

jonnyry commented Sep 10, 2024

@tim-allen-ck I did not unfortunately... I ran out of time.

When I come back to this, I'm thinking of running Gitea on a VM instead as it will hopefully resolve the lock & stability issue, and provider better configurability over port mapping and logging - was also struggling with the restrictions the Azure Web App Service was placing on it around ports, which meant I was not able to SSH into the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants