extiverse / bazaar

The extension marketplace for your Flarum forum.
https://discuss.flarum.org/d/5151
MIT License
59 stars 14 forks source link

"An error occurred #122

Open Jofairden opened 6 years ago

Jofairden commented 6 years ago

Steps to reproduce

  1. Try to install an extension

Expected behaviour

No error

Actual behaviour

Error

Configuration

Operating system:

Version of Bazaar: 0.2.4 Version of Flarum: 0.1.0-beta.7 Other extensions:

EXT flarum-bbcode v0.1.0-beta.5
EXT wiwatsrt-best-answer v0.1.0-beta.11
EXT pnobbe-oauth-discord 1.0.2
EXT michaelbelgium-discussion-views v0.1.0-beta.7-3.3
EXT flarum-emoji v0.1.0-beta.6
EXT flarum-english v0.1.0-beta.7
EXT flagrow-bazaar 0.2.4
EXT flagrow-byobu 0.1.2
EXT flagrow-upload 0.6.0
EXT flarum-flags v0.1.0-beta.7
EXT flarum-auth-github v0.1.0-beta.6
EXT flarum-likes v0.1.0-beta.6
EXT flarum-lock v0.1.0-beta.7
EXT flarum-markdown v0.1.0-beta.5
EXT flarum-mentions v0.1.0-beta.7
EXT sijad-pages 0.1.0-beta.3
EXT wiseclock-profile-image-crop 0.1.1
EXT reflar-gamification 3.0.11
EXT reflar-koseki 0.2.0
EXT reflar-uncache 0.1.0-beta.3
EXT flarum-sticky v0.1.0-beta.7
EXT flarum-subscriptions v0.1.0-beta.6
EXT flarum-suspend v0.1.0-beta.7
EXT flarum-tags v0.1.0-beta.8
**Logs**: The mod kept complaining about not being able to write to composer.json, then composer.lock then vendor/ I chmod them all and it should be fine. After I tried to install something I can now no longer access the bazaar page it just says: ```An error occured. Check the History tab and your Flarum log for details. Don't be afraid to report it to us. Oops! Something went wrong. Please reload the page and try again.``` It also created a vendor2/ folder for some reason
Jofairden commented 6 years ago

Now, itt actaully bricked my entire forum. Every page went completely blank. I can no longer even access the dashboard.

luceos commented 6 years ago

Nothing in the logs? Also you can fix the forum by deleting vendor and manually running composer install. Sorry we're improving bazaar, it's a pretty groundbreaking and young extension.

Jofairden commented 6 years ago

Hmm.. there was a bunch of stuff in the logs, but I never saw anything mentioning bazaar. (something something zen zomething), for now I completely reinstalled Flarum (I'm not doing production stuff yet anyway, but soon)

I think what might've been the problem is the folder not owned by www-data, I just noticed it. Let me actually try it again now that I've fixed that.

Jofairden commented 6 years ago

Hmm, I'm now getting

We recommend allowing PHP to use at least of memory, your php.ini currently allows . Although we try to increase the memory limit during runtime, success depends on your hosting environment. For further information, refer to the wiki. 

But when I use htop, I only see 470M/1.95G usage

Jofairden commented 6 years ago

The bazaar page just says Processing for a second, and then simply no extension shows. The red button is giving that above error (this is a fresh install, no extensions added)

luceos commented 6 years ago

Hm the variable isn't even added. It should say that it needs 1GB of memory. Also the nginx/fpm timeout should be considerably large (15 minutes), because we're pulling in a lot of data unpaginated. The upcoming version for flarum beta 8 will be able to read paginated and run tasks in the background.

Jofairden commented 6 years ago

Before I would instantly see the extensions, can I do something about it?