Page MenuHomePhabricator

Insufficient permission for adding an object to repository database objects
Closed, InvalidPublic

Description

This has happened to be three times today... it seems that the daemons get locked up somehow and refuse to import new commits.

Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] [2015-06-26 17:05:34] EXCEPTION: (PhutilProxyException) Error while updating the "rD" repository. {>} (CommandException) Command failed with error #255!
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] COMMAND
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] '/usr/src/phabricator/bin/repository' update  -- 'D'
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] 
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] STDOUT
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] (empty)
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] 
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] STDERR
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] [2015-06-26 17:05:34] EXCEPTION: (Exception) git fetch failed with error #128:
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] stdout:
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] 
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] stderr:Warning: Permanently added 'git.freelancer.com,10.10.53.37' (RSA) to the list of known hosts.
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] error: insufficient permission for adding an object to repository database objects
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] fatal: failed to write object
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] fatal: unpack-objects failed
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] 
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]  at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php:337]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] arcanist(head=master, ref.master=29839e8c72c5), phabricator(head=master, ref.master=cee1835bb01c), phlab(head=master, ref.master=0aee3d237436), phutil(head=master, ref.master=992abe4a420c)
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #0 PhabricatorRepositoryPullEngine::executeGitUpdate() called at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php:93]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #1 PhabricatorRepositoryPullEngine::pullRepository() called at [<phabricator>/src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php:80]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #2 PhabricatorRepositoryManagementUpdateWorkflow::e... (343 more bytes) ... at [<phutil>/src/future/exec/ExecFuture.php:416]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000] arcanist(head=master, ref.master=29839e8c72c5), phabricator(head=master, ref.master=cee1835bb01c), phlab(head=master, ref.master=0aee3d237436), phutil(head=master, ref.master=992abe4a420c)
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #0 <#3> ExecFuture::resolvex() called at [<phabricator>/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:361]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #1 phlog(PhutilProxyException) called at [<phabricator>/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:368]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #2 PhabricatorRepositoryPullLocalDaemon::resolveUpdateFuture(PhabricatorRepository, ExecFuture, integer) called at [<phabricator>/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:201]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #3 PhabricatorRepositoryPullLocalDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:183]
Daemon 16915 STDE [Fri, 26 Jun 2015 17:05:35 +1000]   #4 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:125]
Daemon 16915 DONE [Fri, 26 Jun 2015 17:05:35 +1000] Process exited normally.
Daemon 16916 DONE [Fri, 26 Jun 2015 17:05:35 +1000] Process exited normally.
Daemon 16917 DONE [Fri, 26 Jun 2015 17:05:35 +1000] Process exited normally.
Daemon 16926 DONE [Fri, 26 Jun 2015 17:05:35 +1000] (2) Graceful shutdown in response to signal 2 (SIGINT).
Daemon 16926 DONE [Fri, 26 Jun 2015 17:05:36 +1000] Process exited normally.

To fix, I just restart the daemons.

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Daemons.
joshuaspence added a subscriber: joshuaspence.

Ahhh, some of the files in /var/repo/D/objects/ are owner by root, possibly because I ran sudo ./bin/repository import at one stage.

joshuaspence claimed this task.