Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazar stuck unknown status when installing extensions #128

Open
maziarz opened this issue Dec 12, 2018 · 11 comments
Open

Bazar stuck unknown status when installing extensions #128

maziarz opened this issue Dec 12, 2018 · 11 comments

Comments

@maziarz
Copy link

maziarz commented Dec 12, 2018

Steps to reproduce

  1. Install Flarum on AWS EC2 with Ubuntu 18.04 LTS
  2. Install Bazaar
  3. Add Cronjob: * * * * * php /var/www/flarum schedule:run >> /dev/null 2>&1
  4. Activate cron job
  5. Install some extensions

Expected behaviour

That the extensions are installed.

Actual behaviour

It is stuck i "Unknown" status.

Configuration

Operating system:
Ubuntu 18.04 LTS

Version of Bazaar:
0.3.9

Version of Flarum:
0.1.0-beta.8.1

Other extensions:
+----------------------+-----------------+------------------------------------------+
| Flarum Extensions | | |
+----------------------+-----------------+------------------------------------------+
| ID | Version | Commit |
+----------------------+-----------------+------------------------------------------+
| flarum-approval | v0.1.0-beta.8 | 6ed2a7fa68f50dcee6570b90a66ed9af75c95e32 |
| flarum-bbcode | v0.1.0-beta.8 | 345fb9d4fbc02e41f3ff9b02c79f2a27ff345722 |
| flarum-emoji | v0.1.0-beta.8 | 322023b28e3aaf594b32ab5ca4ac33581516ff5f |
| flarum-lang-english | v0.1.0-beta.8 | 3ec1647c0860c17aaa74870983c18dd0106fe9d7 |
| flarum-flags | v0.1.0-beta.8.1 | 93c72cc864b6befc641df709ca90f89adae612f6 |
| flarum-likes | v0.1.0-beta.8.1 | 1959948594b0dc2daf987b70c442d6970f8aad7b |
| flarum-lock | v0.1.0-beta.8 | 55d8589f36e5e87fc08c5eb32f34e610665038c2 |
| flarum-markdown | v0.1.0-beta.8 | fd67301b9eb18009bf548ffa601d0d61b8d71e8b |
| flarum-mentions | v0.1.0-beta.8.1 | af80a637a0d7b5250150e9f6ba52512decb709a7 |
| flarum-statistics | v0.1.0-beta.8 | 1d2c81d0c7d9eb1563e073f5acb949234c3eea88 |
| flarum-sticky | v0.1.0-beta.8 | c85e9a0191da8004f54f2a1916e41471f83f19ca |
| flarum-subscriptions | v0.1.0-beta.8 | 7fae63a5279aed01678d01e23d293817ce115466 |
| flarum-suspend | v0.1.0-beta.8 | fcb2d4657af3123d2a8a3d0e223b43df0ed1b7a3 |
| flarum-tags | v0.1.0-beta.8.2 | 58af69d4ea320e22f9e7ba2e3fdf13e2cb5cb96e |
| flagrow-bazaar | 0.3.9 | 26e3895 |
| s9e-mediaembed | 1.0.0 | fc7b7812552ff3e1e141f1780cf089080a2510cf |
| flagrow-console | 0.4.2 | 1b864b3c7c0cb6818065edf2322bc3471e08903e |
+----------------------+-----------------+------------------------------------------+

**Logs**: Insert logs here (if necessary)

skaermbillede 2018-12-12 kl 21 31 46

skaermbillede 2018-12-12 kl 21 30 46

skaermbillede 2018-12-12 kl 21 21 55

@luceos
Copy link
Member

luceos commented Dec 12, 2018

Does a vendor2 directory exist by any chance? And any entries in the storage/logs directory that relates to this?

@maziarz
Copy link
Author

maziarz commented Dec 12, 2018

Does a vendor2 directory exist by any chance? And any entries in the storage/logs directory that relates to this?

Not right now, i have seen it appear, but now it has disappeared. What does that mean?

@maziarz
Copy link
Author

maziarz commented Dec 13, 2018

I can install extensions manually with composer.

@luceos
Copy link
Member

luceos commented Dec 13, 2018

For further debugging:

  • a screenshot or export of your bazaar_tasks table
  • the output of ls -la in your Flarum installation path

I'm not sure what's causing this yet as Bazaar is pretty ground breaking I'm hoping we can get the kinks out soon.

@maziarz
Copy link
Author

maziarz commented Dec 13, 2018

/var/www/flarum# ls -la
total 272
drwxr-xr-x  5 www-data www-data   4096 Dec 13 19:12 .
drwxrwxr-x  5 www-data www-data   4096 Dec 13 19:11 ..
-rw-r--r--  1 www-data www-data    354 Dec  6 08:27 .editorconfig
-rw-r--r--  1 www-data www-data   1509 Dec  6 08:27 .nginx.conf
-rw-r--r--  1 www-data www-data    252 Dec  6 08:27 CHANGELOG.md
-rw-r--r--  1 www-data www-data   1073 Dec  6 08:27 LICENSE
-rw-r--r--  1 www-data www-data   2623 Dec  6 08:27 README.md
-rw-r--r--  1 www-data www-data   3098 Dec 13 19:15 composer.json
-rw-r--r--  1 www-data www-data 218519 Dec 13 19:13 composer.lock
-rw-r--r--  1 www-data www-data    471 Dec 13 19:12 config.php
-rw-r--r--  1 www-data www-data    311 Dec  6 08:27 extend.php
-rw-r--r--  1 www-data www-data    487 Dec  6 08:27 flarum
drwxr-xr-x  3 www-data www-data   4096 Dec  6 08:27 public
drwxr-xr-x 10 www-data www-data   4096 Dec  6 08:27 storage
drwxr-xr-x 38 www-data www-data   4096 Dec 13 19:13 vendor

@maziarz
Copy link
Author

maziarz commented Dec 13, 2018

mysql> SELECT * FROM bazaar_tasks;
+----+--------+---------+---------------------------+--------+---------------------+------------+-------------+------------------------------------+
| id | status | command | package                   | output | created_at          | started_at | finished_at | command_class                      |
+----+--------+---------+---------------------------+--------+---------------------+------------+-------------+------------------------------------+
|  1 | NULL   | install | s9e/flarum-ext-mediaembed |        | 2018-12-13 19:15:50 | NULL       | NULL        | Flagrow\Bazaar\Jobs\RequirePackage |
+----+--------+---------+---------------------------+--------+---------------------+------------+-------------+------------------------------------+
1 row in set (0.00 sec)

@maziarz
Copy link
Author

maziarz commented Dec 13, 2018

crontab -u www-data -l
* * * * * php /var/www/flarum schedule:run >> /dev/null 2>&1

@maziarz
Copy link
Author

maziarz commented Dec 13, 2018

Oh i forgot to mention that i am using PHP-FPM 7.2

@maziarz
Copy link
Author

maziarz commented Dec 13, 2018

My logs were complaining about curl. So i installed php7.2-curl and it fixed the install problem. Now when i disable Use crons for task processing the installs work without any problems, when i enable it, its still stuck.

@luceos
Copy link
Member

luceos commented Dec 17, 2018

Please do the following:

  • re-enable cron processing
  • run an action to install an extension
  • run this command on the terminal/bash using ssh
$ php flarum bazaar:task -vvv

Post the output ;)

@maicol07
Copy link

maicol07 commented Sep 14, 2019

@luceos I post here the output of the command as I have the same issue, although this issue is 1 year old.

[maicol07@maicol07 community]# php flarum bazaar:task -vvv
Processing task 11, to install jordanjay29/flarum-ext-summaries

[maicol07@maicol07 community]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants