Upgrade failed, Unknown conversion Z. at phutil /src/xsprintf/qsprintf.php:337

Today trying to upgrade fabricator with script update_phabricator.sh.

/phabricator/scripts/install$ sudo bash update_phabricator.sh

  • ROOT=/home/adv
  • cd /home/adv/libphutil
  • git pull
    Already up-to-date.
  • cd /home/adv/arcanist
  • git pull
    Already up-to-date.
  • cd /home/adv/phabricator
  • git pull
    Already up-to-date.
  • /home/adv/phabricator/bin/phd stop
    There are no running Phabricator daemons.
  • sudo systemctl stop apache2
  • /home/adv/phabricator/bin/storage upgrade
    Before running storage upgrades, you should take down the Phabricator web
    interface and stop any running Phabricator daemons (you can disable this
    warning with --force).

Are you ready to continue? [y/N] y

Applying patch “phabricator:20181024.drydock.01.commandprops.sql” to host “localhost”…
[2018-11-16 12:05:37] EXCEPTION: (XsprintfUnknownConversionException) Unknown conversion Z. at [<phutil>/src/xsprintf/qsprintf.php:337]
arcanist(head=stable, ref.master=73f5afd44110, ref.stable=45a8d22c74a6), phabricator(head=master, ref.master=44c32839a68c), phutil(head=stable, ref.master=20eff1c8d14f, ref.stable=b29d76e1709e)

#0 qsprintf_check_scalar_type(string, string, string) called at [<phutil>/src/xsprintf/qsprintf.php:282] #1 qsprintf_check_type(string, string, string) called at [<phutil>/src/xsprintf/qsprintf.php:172] #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) called at [<phutil>/src/xsprintf/queryfx.php:5] #5 queryfx(AphrontMySQLiDatabaseConnection, string, string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:270] #6 PhabricatorStorageManagementAPI::applyPatchSQL(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:238] #7 PhabricatorStorageManagementAPI::applyPatch(PhabricatorStoragePatch) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:1157] #8 PhabricatorStorageManagementWorkflow::doUpgradeSchemata(array, NULL, boolean, boolean) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:903] #9 PhabricatorStorageManagementWorkflow::upgradeSchemata(array, NULL, boolean, boolean) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php:78] #10 PhabricatorStorageManagementUpgradeWorkflow::didExecute(PhutilArgumentParser) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:107] #11 PhabricatorStorageManagementWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:457] #12 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:349] #13 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/sql/manage_storage.php:249]

Run master everywhere or stable everywhere. You can’t mix the two.

1 Like

Thank you! Now it works!

пт, 16 нояб. 2018 г., 17:41 Evan Priestley phabricator@discoursemail.com: