Hi experts,gerrit restart failing even if it is run as root user or gerrit userPlease suggest any solution.Error:bash-4.2$ ./gerrit.sh restart
Stopping Gerrit Code Review: OKStarting Gerrit Code Review: WARNING: Could not adjust Gerrit's process for the kernel's out-of-memory killer.This may be caused by /var/gerrit/bin/./gerrit.sh not being run as root.
Consider changing the OOM score adjustment manually for Gerrit's PID=579 with e.g.:echo '-1000' | sudo tee /proc/579/oom_score_adj
FAILEDNote: gerrit hosted as docker container
output of statusbash-4.2$ ./gerrit.sh statusChecking arguments to Gerrit Code Review:GERRIT_SITE = /var/gerritGERRIT_CONFIG = /var/gerrit/etc/gerrit.configGERRIT_PID = /var/gerrit/logs/gerrit.pidGERRIT_TMP = /var/gerrit/tmpGERRIT_WAR = /var/gerrit/bin/gerrit.warGERRIT_FDS = 1024GERRIT_USER = root
4. Says root here but still wondering if this matches the user effectively running gerrit.sh above.GERRIT_STARTUP_TIMEOUT = 90JAVA = /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/jre/bin/javaJAVA_OPTIONS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance -Djava.security.egd=file:/dev/./urandomRUN_EXEC = /usr/bin/perl -e '$x=$ENV{JAVA};exec $x @ARGV;die $!' -- GerritCodeReviewRUN_ARGS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance -Djava.security.egd=file:/dev/./urandom -jar /var/gerrit/bin/gerrit.war daemon -d /var/gerrit
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/ca505f2f-e7e3-46ab-a611-1f893692ab78%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/76047EB6-E28B-47C0-8C0A-D6E44513DABD%40gmail.com.
Hi Miller/Luca,I am using gerrit image official one from dockerhub.1. The script has run by using gerrit user and facing this error message and stopping is not the issue, but the starting is failing.When I did it with root user, faced permission denied message, then changed the permissions, and faced the same issue even in root user.2. As we clearly can see GERRIT_USER = root , so I did it using root. even also did with gerrit user.3. But the when it comes to costume dockerfile, the restart, stop, start service is working perfectly.Do not worry about the WARNING output, I have seen the script , it is just a warning output.4. But the thing is why is it failing on official docker container, Is there anything that we are missing to mount, or to configure.Note: we need to restart the service from outside of the container to overcome some issue, It is a production blocker for us.
So please suggest , that will be very helpful.
...@Luca Milanesio , Nope we are not mounting /dev/urandom as mount volume or any kind of volume. But the file is there in the container .
So can you please elaborate , why /how should we mount the mentioned file and how is it related to resarting the gerrit service inside the container.Thanks in advance...
To unsubscribe, email rep...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/ca505f2f-e7e3-46ab-a611-1f893692ab78%40googlegroups.com.
--
--
To unsubscribe, email repo-d...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/360ae963-62d0-4cf8-88a3-a566e16a5b31%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/360ae963-62d0-4cf8-88a3-a566e16a5b31%40googlegroups.com.
On 17 Apr 2020, at 03:21, Shad Perwez <tech....@gmail.com> wrote:Hi Miller/Luca,I am using gerrit image official one from dockerhub.
1. The script has run by using gerrit user and facing this error message and stopping is not the issue, but the starting is failing.When I did it with root user, faced permission denied message, then changed the permissions, and faced the same issue even in root user.
2. As we clearly can see GERRIT_USER = root , so I did it using root. even also did with gerrit user.3. But the when it comes to costume dockerfile, the restart, stop, start service is working perfectly.
Do not worry about the WARNING output, I have seen the script , it is just a warning output.4. But the thing is why is it failing on official docker container, Is there anything that we are missing to mount, or to configure.
Note: we need to restart the service from outside of the container to overcome some issue, It is a production blocker for us.
So please suggest , that will be very helpful.@Luca Milanesio , Nope we are not mounting /dev/urandom as mount volume or any kind of volume.
But the file is there in the container .So can you please elaborate , why /how should we mount the mentioned file and how is it related to resarting the gerrit service inside the container.