You can repro on a test instance in https://phacility.com.
Running into this issue right now, `
Unable to connect to MySQL!
Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable.
AphrontConnectionQueryException: Attempt to connect to root@localhost failed with error #1698: Access denied for user 'root'@'localhost'.
Make sure Phabricator and MySQL are correctly configured.
I was able to run ./bin/storage upgrade
how is that possible if mysql doesn't work?
Has the contributor guide moved to somewhere else? https://secure.phabricator.com/book/phabcontrib/
I strongly suspect that the answer for this exists already, but I've failed in Googling for it. I have a instance running on <thing>.phacility.com. I have a repository in diffusion. The repository has one active URI that is observing a Github repo. My colleague created a Diff. I accepted. He landed it. In the Differential UI, it shows that the Diff has a commit. However, the Diff remains in the "Accepted" state. It doesn't show as landed/closed/whatever the state should be given that it has a commit associated with it. Halp?
*an instance
From what I read here https://secure.phabricator.com/book/phabricator/article/arcanist_diff/#pushing-and-closing-revi, it would seem that the implicity arc close-revision call isn't being made for some reason.
From the config, it looks okay: "Autoclose Only Autoclose On All Branches"
FWIW, it's working now for reasons I don't understand. _shrugs_
Running bin/storage upgrade (plus git pull from a phabricator hosted repo) is generating theses errors (although the process still runs ok)
[xxx]# bin/storage upgrade;
[2018-11-14 10:10:36] PHLOG: 'UNSAFE: Raw string ("") passed to query ("SELECT * FROM %s WHERE namespace = %s AND isDeleted = 0 %Q") for "%Q" conversion. %Q should be passed a query string.' at [/libphutil/src/xsprintf/qsprintf.php:404]
[2018-11-14 10:10:36] PHLOG: 'UNSAFE: Raw string ("") passed to query ("SELECT * FROM %s WHERE namespace = %s AND isDeleted = 0 %Q") for "%Q" conversion. %Q should be passed a query string.' at /libphutil/src/xsprintf/qsprintf.php:404]
Hello,
Looks like the "UNSAFE: Raw string..." error reported above is flooding the logs: in /var/tmp/phd/log/daemons.log. Any ideas to prevent this message?
when i try to patch binary file like image gif gets error ERR-BAD-PHId any suggestions ??
@rfergu this channel is rarely monitored these days; you should look for support on our Discourse: https://discourse.phabricator-community.org/
To answer your specific question, here's all the up to date information about GitLFS support for Phabricator: https://secure.phabricator.com/T7789
after git pull to latest version i am getting lots of errors like `[31-Jan-2019 16:49:52 UTC] PHP Fatal error: Call to undefined method ManiphestTransactionEditor::getTitleForHTMLMail() in /opt/phabricator/phabricator/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php on line 3315
in `phd.log`
wow, instant fix. Great
Hey guyw ist there any chance to get help with something like this: https://discourse.phabricator-community.org/t/arc-patch-fails-with-git-lfs-files/2447 ? I really can't figoure out if there is something wrong with our phabricator environment, the window clients working with arc, or something else.
Hi,
i'm trying to reproduce a problem on our instance we've had for a while (through multiple phabricator versions). Our phabricator box uses huge amounts of memory when browsing repository commits. Our box has 32G mem and still sometimes OOM's if i open a dozen commits simultaneously.
I'm suspecting the graph cache at the moment but still have to dig deeper.
I've traced the request and can see the the cache entry (in general_cache) is ~60M large (compressed) and the diffusion.lastmodifiedquery takes ~5seconds. I haven't traced the memory usage yet though. Still 5s for viewing a commit diff is very slow.
Any idea how i can find out what's wrong with this cache? Dump/show the graph in some kind of readable way? Or is this kind of size normal for it? (we host ~70 repos totalling 10g of data)
Am i correct that it is a single cache for all repositories? (at least there's only one cache key and the problem is not repo specific)
ok, after a bit more digging i can see that the buckets of the graph cache are quite unbalanced. i can see ~20 buckets each having between 100 - 400kb. Then one with 1.7mb, 24mb & 60mb each. There might be a commit that basically changed everything in a repo and creates a very large cache entry because of it? (sth like committing a big bunch of external dependencies)
i'm not sure why the diffusion browser actually needs this information to simply show a single commit diff (not browsing through the tree)
ok, found it. we had some devs use a branch in a repo committing & pushing full rebuilds of stuff. so lot's of commits changing > 1000 files (170.000 to be exact :/ )
in our case i was able to not import this branch. if i wanna view those commit's in phabricator i can't and get the "> 1000 files affected" message. so i think the graph cache should probably ignore those commits as well. i'm not sure though how the frontend would handle cache misses like that, although the cache code states it might happen for recent commits. in our case a single cache bucket needed >2gb of memory to decompress, unserialize and parse. and then obviously didn't fit into the apc cache as well.
simply skipping commits in the graph bucket rebuild having > 1000 paths changed would be easy to add. judging what the consequences in the frontend might be is not ^^ (at least not for me)
I'm trying to run ./bin/storage upgrade on the latest stable, and I'm getting this...
EXCEPTION: (AphrontAccessDeniedQueryException) #1044: Access denied for user 'phab'@'localhost' to database 'phabricator_paste' at [<phabricator>/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:350]
There is no database called phabricator_paste, but I do have one called phabricator_pastebin. Should I rename this manually, or has something seriously borked?
Aha! I have fixed it. It appears that some of the storage upgrades had been incomplete, or at least not remembered by the system, before. If anyone else gets this:
- Create a new database called phabricator_paste, grant privileges to the phabricator user (of course).
- Export the contents of the phabricator_pastebin database into an SQL file you store locally, both as a backup and for step 3.
- Import that SQL file into phabricator_paste.
- In my case, I also had to DROP TABLE edge; DROP TABLE edgedata; on phabricator_paste as well.
- Run ./bin/storage upgrade. It should work correctly and clean everything up.
I verified that the data in the Paste app is still there, and no errors are occurring now.
Can anyone check? For example, https://secure.phabricator.com/dashboard/view/250/, if you upload file to Panel, it does not get attached and Object policy is not working then for that file. Attaching to other objects (Tasks, Wiki, etc.) works as expected and tab "Attached" appears correctly.
Do you mean something like https://secure.phabricator.com/settings/panel/password/ ?
I got PytestTestEngine.php almost working. But I am a bit confused, about the output. @epriestley, is there any plan about unit tests engine?
Also, you might have more feedback at https://discourse.phabricator-community.org/.
I think that @enko request is far from vain: the same question have been asked to me many times, and even more times I've not been asked but I think users have this problem
Hi @stevex, @enko
Yes, it's a completely valid question, and it should probably have an answer documented somewhere. However:
- The best place for this kind of discussions right now is in Discourse, where it's more visible to the community at large, and
- most of the people involved directly with building Phabricator just don't use Scrum, so we can't give a good answer.
There's a bunch of features implemented that provide pieces of the solution, but there's no built-in "scrum mode" because, honestly, we don't know what it means exactly (and what it means exactly is a little different in each company too).
This would be a good if someone can come up with a "this is how I do Scrum with Phabricator" blog post and publish it somewhere.
Anyone still here? Trying to figure out how to permanently delete my account. Doesn't seem I have that ability from the profile settings page.
I'd also like to get my account deleted. @epriestley can you help with this, please?