Hi,
I'm opening a new issue for what I've described in T6315, because this task is closed and I'm still having the issue after upgrading phabricator.
During mercurial repository importation, some commits weren't importing:
rd@ly-phabricator-test:~/phabricator$ ./bin/repository importing E rEfa3b374825f1f99d53bad22a1d4c52834342db93 Change, Owners, Herald rE85369cdf3eb47d88cb39d11079b9dbf8b925371d Change, Owners, Herald rE1ffcd1eea76daf11ff5b25605f8bc630af646227 Change, Owners, Herald rE65718876b5791a548e5a0c6f6c136d38616842c4 Change, Owners, Herald rEb46a1d9527c67a7b64993775e46d92f1d0608f2c Change rd@ly-phabricator-test:~/phabricator$
I had to mark the repository as imported to move on :
./bin/repository mark-imported <repository>
But I still have a huge number of failures in the daemons log :
PhabricatorRepositoryMercurialCommitChangeParserWorker - Expires 1m - Failures 20971
Phabricator is constently retrying to parse thoses commits...
And sometimes it seems to impact the polling: repository is not updated anymore, polling seems to have stop.
I had to installed a cron to restart daemons from times to times...
This is what I got when reparsing with the new syntax :
rd@ly-phabricator-test:~/phabricator$ ./bin/repository reparse rEfa3b374825f1f99d53bad22a1d4c52834342db93 --message --change --owners --herald You are about to recreate the relationship entries between the commits and the packages they touch. This might delete some existing relationship entries for some old commits. Are you ready to continue? [y/N] y [2015-02-13 12:54:52] EXCEPTION: (AphrontCharacterSetQueryException) Attempting to construct a query using a non-utf8 string when utf8 is expected. Use the `%B` conversion to escape binary strings data. at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:331] #0 AphrontBaseMySQLDatabaseConnection::validateUTF8String(string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:10] #1 AphrontMySQLiDatabaseConnection::escapeUTF8String(string) called at [<phutil>/src/xsprintf/qsprintf.php:170] #2 xsprintf_query(AphrontMySQLiDatabaseConnection, string, integer, string, integer) called at [<phutil>/src/xsprintf/xsprintf.php:70] #3 xsprintf(string, AphrontMySQLiDatabaseConnection, array) called at [<phutil>/src/xsprintf/qsprintf.php:64] #4 qsprintf(AphrontMySQLiDatabaseConnection, string, string, string) called at [<phabricator>/src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryCommitChangeParserWorker.php:58] #5 PhabricatorRepositoryCommitChangeParserWorker::lookupOrCreatePaths(array) called at [<phabricator>/src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryMercurialCommitChangeParserWorker.php:255] #6 PhabricatorRepositoryMercurialCommitChangeParserWorker::parseCommitChanges(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryCommitChangeParserWorker.php:30] #7 PhabricatorRepositoryCommitChangeParserWorker::parseCommit(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:44] #8 PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:91] #9 PhabricatorWorker::executeTask() called at [<phabricator>/src/applications/repository/management/PhabricatorRepositoryManagementReparseWorkflow.php:297] #10 PhabricatorRepositoryManagementReparseWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:396] #11 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:292] #12 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/repository/manage_repositories.php:22] rd@ly-phabricator-test:~/phabricator$
In fact the issue comes from fa3b374825f1, following commits are merges including the same modification, so let's focus on that one.
This commits contains several added files, and one of them caught my attention:
diff -r cbb86f87066e -r fa3b374825f1 Delivery/Facture-Avoir N° 094169.PDF
I suspect the filename Facture-Avoir N° 094169.PDF to be the root cause.
Which is fine in windows explorer.
- Can I do something to stop phabricator from parsing thoses commits ?
- Can this exception be fixed ?
Thank you