'Gerrit server on Raspberry pi 4 loses all days work
I have set up a Gerrit server on a Raspberry pi 4 in a classroom for training purposes. In the morning I start it with:
sudo $GERRIT_SITE/bin/gerrit.sh start
In the afternoon I stop it with:
sudo $GERRIT_SITE/bin/gerrit.sh stop
Then I pack up and go home. When I start it at home, nothing has been saved. Everything has worked during the day, we have made commits, code review, merged etc. All is lost, I only have a couple of old commits visible. What's happening? Doesn't Gerrit sync it's files, or is it an ownership issue? I notice some files in the server directory are owned by the gerrit user and some by root, and I am starting the server as the pi user. Which ownership should go where? What is the correct way of starting and running Gerrit?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|