Page MenuHomePhabricator

Bogus "not a valid project" errors
Closed, ResolvedPublic1 Estimated Story Points

Description

Every time I try to look up my editing statistics on French Wikipedia, it tells me that "fr.wikipedia.org is not a valid project". See screenshot:

Screen Shot 2017-06-22 at 11.54.48 AM.png (624×1 px, 136 KB)

Event Timeline

kaldari triaged this task as High priority.Jun 22 2017, 6:57 PM
kaldari set the point value for this task to 1.
kaldari added subscribers: Samwilson, MusikAnimal.

This is while not logged in via OAuth.

Matthewrbowker subscribed.

Works for me. Queries need to be optimized but that's outside of the scope of this task.

kaldari reopened this task as Open.EditedJun 22 2017, 8:50 PM

Still broken for me. Steps to reproduce:

If I try "en.wikipedia.org" it works fine, but any other wiki, like de.wikipedia.org or es.wikipedia.org causes it to give me the error consistently.

When it submits the form, it sends a request to http://xtools.wmflabs.org/api/normalizeProject/fr.wikipedia.org, which returns a 500 Internet Server error (often after waiting a long time).

Ahhhh, you were testing on the new "live" instance. I was testing on the "dev" instance, which succeeded.

I wonder what the difference is between the instances. @Samwilson you set up the OOP code correct? Do you have any thoughts here?

I think it works now (I fixed a bug in prod deployment relating to permissions on the var directory, and usage of Redis).

@Samwilson: If there are some clean-up tasks that need to be done each time the code is updated, you might want to implement a composer script. @dbarratt might also have some ideas.

Good plan. Is it okay for a composer script to call composer install? I guess so. :-)

The prod script is currently:

#!/bin/bash
export SYMFONY_ENV=prod
cd /var/www
git pull origin master
composer install --no-dev --optimize-autoloader
./bin/console cache:clear --env prod
./bin/console assetic:dump --env prod

And similar on the staging server.

(I guess T167217 is the place for that discussion though.)

kaldari claimed this task.

Seems to be working now!