Page MenuHomePhabricator

The Paste app doesn't work
Closed, ResolvedPublic

Description

While trying to create/edit a paste and save it, an error occurs:

Unhandled Exception ("AphrontQueryException") 
#1048: Column 'content' cannot be null

I looked at the server log, see the following:

[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254] [2015-12-04 15:28:52] ERROR 2: array_diff(): Argument #2 is not an array at [/mnt/phabricator/src/applications/transactions/editfield/PhabricatorTokenizerEditField.php:54]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254] arcanist(head=master, ref.master=9e78d15fc0c7), phabricator(head=master, ref.master=5b4825cf1eea, custom=1), phutil(head=master, ref.master=5538909d6468)
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #0 array_diff(array, NULL) called at [<phabricator>/src/applications/transactions/editfield/PhabricatorTokenizerEditField.php:54]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #1 PhabricatorTokenizerEditField::getValueForTransaction() called at [<phabricator>/src/applications/transactions/editfield/PhabricatorEditField.php:238]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #2 PhabricatorEditField::generateTransaction(PhabricatorPasteTransaction) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:686]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #3 PhabricatorEditEngine::buildEditResponse(PhabricatorPaste) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:633]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #4 PhabricatorEditEngine::buildResponse() called at [<phabricator>/src/applications/paste/controller/PhabricatorPasteEditController.php:8]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #5 PhabricatorPasteEditController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254] [2015-12-04 15:28:52] EXCEPTION: (AphrontQueryException) #1048: Column 'content' cannot be null at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:312]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254] arcanist(head=master, ref.master=9e78d15fc0c7), phabricator(head=master, ref.master=5b4825cf1eea, custom=1), phutil(head=master, ref.master=5538909d6468)
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #0 <#2> AphrontBaseMySQLDatabaseConnection::throwQueryCodeException(integer, string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:275]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #1 <#2> AphrontBaseMySQLDatabaseConnection::throwQueryException(mysqli) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:181]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #2 <#2> AphrontBaseMySQLDatabaseConnection::executeRawQuery(string) called at [<phutil>/src/xsprintf/queryfx.php:6]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #3 <#2> queryfx(AphrontMySQLiDatabaseConnection, string, string, string, array, string)
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #4 <#2> call_user_func_array(string, array) called at [<phutil>/src/aphront/storage/connection/AphrontDatabaseConnection.php:28]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #5 <#2> AphrontDatabaseConnection::query(string, string, string, array, string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:1261]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #6 <#2> LiskDAO::insertRecordIntoDatabase(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:1106]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #7 <#2> LiskDAO::insert() called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:1075]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #8 <#2> LiskDAO::save() called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionCommentEditor.php:65]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #9 <#2> PhabricatorApplicationTransactionCommentEditor::applyEdit(PhabricatorPasteTransaction, PhabricatorPasteTransactionComment) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:861]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #10 <#2> PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorPaste, array) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:702]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #11 <#2> PhabricatorEditEngine::buildEditResponse(PhabricatorPaste) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:633]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #12 <#2> PhabricatorEditEngine::buildResponse() called at [<phabricator>/src/applications/paste/controller/PhabricatorPasteEditController.php:8]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #13 <#2> PhabricatorPasteEditController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #14 phlog(AphrontQueryException) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:32]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #15 PhabricatorDefaultRequestExceptionHandler::handleRequestException(AphrontRequest, AphrontQueryException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:632]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #16 AphrontApplicationConfiguration::handleException(AphrontQueryException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:242]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #17 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254]   #18 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]
[Fri Dec 04 23:28:52 2015] [error] [client 172.16.8.254] PHP Fatal error:  Uncaught exception 'Exception' with message 'Process exited with an open transaction! The transaction will be implicitly rolled back. Calls to openTransaction() must always be paired with a call to saveTransaction() or killTransaction().' in /mnt/libphutil/src/aphront/storage/connection/AphrontDatabaseTransactionState.php:78\nStack trace:\n#0 [internal function]: AphrontDatabaseTransactionState->__destruct()\n#1 {main}\n  thrown in /mnt/libphutil/src/aphront/storage/connection/AphrontDatabaseTransactionState.php on line 78

Event Timeline

nickz assigned this task to epriestley.
nickz updated the task description. (Show Details)
nickz added a project: Paste.
nickz added a subscriber: nickz.

phabricator(head=master, ref.master=5b4825cf1eea, custom=1)

You're a few days out of date -- I believe both of these issues are fixed at HEAD. Can you upgrade and let me know if you're still seeing issues?

(At the least, I can't reproduce these issues at HEAD.)

Yeah, I upgraded my dev instance to Head which doesn't have this issue. Thanks!

Cool, let us know if you run into anything else.