General Chat
PublicCome, chill, and stay a while

chaseh joined the room.
chaseh left the room.
May 20th, 2017

Hi, @avivey,
PHP 5.6.30 (fpm-fcgi) (built: Mar 11 2017 09:56:31)
nginx version: nginx/1.12.0
mysql Ver 14.14 Distrib 5.7.18, for osx10.12 (x86_64) using EditLine wrapper
phabricator 73ed316c5d2e5bb4092940729827f7877306394e (Tue, May 16)

Is there any documentation regarding phd-daemon? I couldn't find any and with updating phabricator something broke in the initscript somebody else wrote for us.

I am using an nginx reverse proxy to terminate tls in front of a container that has nginx running on http to do the "php stuff", it seems to work fine, but I get a "phabricator thinks you are using http but your client is convinced that it is using https..." error when I load into my site, any recommendations on what I should do here?

actually, it looks like T7777 documented the thing I'm seeing, I would just like to know how to overwrite the phabricator response header

I think?

chad: yeah the preamble is required

I updated T7777 with what I'm doing, hoping someone else smarter in nginx header writing can point me in the right direction

May 22nd, 2017
Bezalel left the room.

@chad: Looks like nav remarkup lost it's background?

๐Ÿ—ก

Home โ†’ Grocery Store โ†’ Produce Section โ†’ Lemons

probably caching

I'm adding a new Differential (Stored) Custom Field into a third-party libphutil library, and I've got that working. However, I don't seem to be able to reorder the field within the core fields. I'd like to be able to place the field between Test Plan and Reviewers. Is that possible?

This is what the field looks like when editing differential.fields:

However, it shows up down here

looks like a bug

May 23rd, 2017

another question lads: is it possible to send a slack message whenever a concern has been raised during auditing to the author of the commit?

Though that seems like a lot of work instead of just emailing them.

I think there's a slack integration in Community Resources.

May 24th, 2017

When using phab ssh HTTP clone I always get: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out

what can I do to make that work?

ssh cloning is so slow

I feel like this was asked recently somewhere - using conduit is it possible to add a blocking reviewer? The API doesn't seem to indicate it possible as the differential.revision.edit requires PHIDs when adding reviewers.

@cspeckmim Is Z1336#37763 what you're thinking of?

@carlokok: Maybe you need a bigger computer. SSH cloning is always going to be at least as fast as HTTP, and usually faster (unless maybe there's no data to transfer, in which case it should be very fast in any case).

@faulconbridge - yes thank you! However I'm having trouble navigating to that chat link - if I open in new tab it takes me there but I can't scroll through prior history~

Ok - will have to give it a shot

May 25th, 2017

Is there a way to use .arcconfig and .arcunit from a different location than default one?

So I tried following the directions to setup SSH for phab-hosted repos and not only did I not get it to work, I broke cloning over HTTP. I just get an error 500 internal server error every time i try to clone over http, and there is nothing relevant in /var/log/apache2/error.log /var/log/apache2/phab.log or /var/log/phabricator (which just has an access log with some information about the repos requested)

I was assuming it had to do with me changing the phd.user from root to daemon-user (repos were owned by root) but I chown'd the repos and it still doesn't work.

any ideas where to look at least for info on the error or anything? I'd be happy just getting clone over http working again

If there are 500 errors happening I would have to imagine there would be something relevant in the web server logs

cspeckmin I would think so but there's nothing in any of my apache error logs.

The only thing in error.log was an error from PHLOG saying it couldn't write to /var/log/phabricator/access.log. I changed the file permissions and that error stopped but there's no info about the error in either log.

I've been cloning / pulling from / pushing to like 8 repos with no issues for almost a month, but I apparently did something trying to setup SSH that made it completely stop working.

Are you using app armor?

@chad I don't think so, how would I tell? For the most part it's just a LAMP stack with debian, apache2, mysql-server, and php (and modules). Outside of a few things like htop, git, and phabricator, I don't think I've installed any special software

ah.. using GIT_CURL_VERBOSE=1 it says a sudo password is required but my sudoers entries are literal copy/paste from the instructions.. "vcs-user ALL=(daemon-user) SETENV: NOPASSWD: command, command, etc

apparmor/selinux are just enabled by default on some distributions. You'd have to research if they were running on your system yourself. I can't guide you there.

looked up some basic usage instructions for them both and pretty confident that's not it

im fairly certain it has to do with me changing phd.user from root to daemon-user

but i can't figure out why it says sudo is required trying to clone

user entries

vcs-user ALL=(daemon-user:daemon-user) SETENV: NOPASSWD: /bin/ls, /usr/bin/git, /usr/lib/git-core/git-http-backend, /usr/bin/git-upload-pack, /usr/bin/git-receive-pack
www-user ALL=(daemon-user:daemon-user) SETENV: NOPASSWD: /bin/ls, /usr/lib/git, /usr/lib/git-core/git-http-backend, /usr/bin/git-upload-pack, /usr/bin/git-receive-pack

apparently conpherence supports markup? good to know

why it's saying a password is required to sudo*

@chad >< I was focused way too much on other things.. "www-user" -> "www-data" http is fixed. will try looking at ssh more now that daemon is setup properly and http works

@NDKilla - is that the exact entry in your /etc/sudoers? Is daemon-user the account that your phd daemons run as?

@cspeckmim yes that's the exact entry. Happy I got cloning over http to work. Now I'm trying to figure out why ssh doesn't work (public key refused but it's in my account settings). I'm currently re-reading the page about setting it up

@cspeckmim do you know if daemon-user needs any special permissions? or does it not need sudo since it owns the repos?

@cspeckmim I believe I've followed all of those exactly but the server is just refusing my publickey. Knowing me this is stupid and I hope to look into it more in a while, but what I found running `sshd with -d -d -d -E /path/to/log -f /path/to/phabricator/sshd_config`` was `Failed publickey for vcs-user from [internal ip] port 52409 ssh2: [key fingerprint]` followed by `key [key] is not allowed``

ahhhhhhhhhhhh i fucked up the remarkup, hopefully you understand that.. I'll double check but im like 99% sure a valid key is on my account.. I've deleted and re-created my keypair like 4 times

i just need a key on my account right, not a key for vcs-user on the server?

also, running `/path/to/ssh_hook.sh vcs-user``` as root shows the public keys attached to all accounts, and the public key im using shows up there.... super confused again

after reading T5463 I did chown -R root:vcs-user /path/to/ssh_hook/.. and it worked.. does this give any indication as to something I'm doing wrong or is it supposed to be like this? I know the sshd refuses to execute the hook if it's not owned by root, but setting group seemed to work..

It looks like T9560 indicates the issue as well as indicates the problem was resolved by making an update to that article about hosting diffusion repos

@cspeckmim i saw that too, but the parent directory had already been owned by root. it appears to not be an issue of the script not executing (sshd preauth fails to run the script) vs script executing and failing (sshd runs the script, but authentication always fails)

Maybe I should ask a question on ponder or create a task and provide all of my environment info? I'm pretty sure it's a config thing though and, since it's working, not sure I should bother

May 26th, 2017

It's been a while since I've looked it over but I did put some details down from the installs I've setup regarding SSH and such: https://github.com/neandrake/phab-utils

Hi guys. I am currently trying to install phabricator. At the step

./bin/storage upgrade --user loving --password Ux9ro4iuyahcheegh7n --force

I am getting the following error:

EXCEPTION: (PhutilProxyException) Failed while trying to read schema status: the database "phabricator_meta_data" exists, but the current user ("loving") does not have permission to access it. GRANT the current user more permissions, or use a different user. {>} (AphrontAccessDeniedQueryException) #1044: Access denied for user 'loving'@'localhost' to database 'phabricator_meta_data' at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:319]

but when looking into phpmyadmin, the database phabricator_meta_data doesn't exist

any advice? :)

does the user have access to create databases?

yes, just checked

Is it a normal version of mysql?

Is the password correct?

Today I am getting below error message :

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.

Make sure Phabricator and MySQL are correctly configured

yes password is correct

it is on shared hosting

mysql version is 5.1.73

@manoj.katikar, I am getting the same error

Mysql 5.1.73 is very old; We strongly recommend MySQL 5.5 or newer.
We also don't support shared hosting, because their mysql/php configuration is often unusable.

whhaaat, that's like 10 years old

5 generations of hamsters

May 27th, 2017
guazi joined the room.

i need help

i need to listen to event that a person click submit button

Do you have any good solutions

i need to listen to event that a person click the submit button in revision, Is there any way? please.

a person click the submit button in revision, Change the revision state, i need to real-time record the revision state.

i want Phabricator to can call my service when a person click the submit button in revision.

rabahmeradi left the room.