extiverse / bazaar

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

Bazaar installed, not loading #108

Closed ardacebi closed 6 years ago

ardacebi commented 6 years ago

Steps to reproduce

  1. Install it using the command provided on the community.
  2. Click on Bazaar button.

Expected behaviour

Bazaar Should load.

Actual behaviour

Getting this error:

screenshot-2018-3-17 blockly studio community

Configuration

Operating system: CentOS 6.9

Version of Bazaar: 0.2.4 Version of Flarum: Beta 7 Other extensions: None

This is the debug output:

GET https://community.blocklystudio.xyz/api/bazaar/extensions?filter%5Bsearch%5D=

<HTML>
<HEAD>
<TITLE>500 Internal Server Error</TITLE>
<BASE href="/error_docs/"><!--[if lte IE 6]></BASE><![endif]-->
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator to inform of the time the error occurred
and of anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>
Web Server at blocklystudio.xyz
</ADDRESS>
</BODY>
</HTML>

<!--
   - Unfortunately, Microsoft has added a clever new
   - "feature" to Internet Explorer. If the text of
   - an error's message is "too small", specifically
   - less than 512 bytes, Internet Explorer returns
   - its own error message. You can turn that off,
   - but it's pretty tricky to find switch called
   - "smart error messages". That means, of course,
   - that short error messages are censored by default.
   - IIS always returns error messages that are long
   - enough to make Internet Explorer happy. The
   - workaround is pretty simple: pad the error
   - message with a big comment like this to push it
   - over the five hundred and twelve bytes minimum.
   - Of course, that's exactly what you're reading
   - right now.
   -->

This is the output of php flarum info:

Flarum core 0.1.0-beta.7
PHP 5.6.30
Loaded extensions: Core, date, ereg, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imap, exif, mcrypt, mysqlnd, PDO, Phar, SimpleXML, sockets, sqlite3, tokenizer, xml, xmlwriter, xsl, mysql, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, json, zip, mhash, ionCube Loader
EXT flarum-bbcode v0.1.0-beta.5
EXT flarum-emoji v0.1.0-beta.6
EXT flarum-english v0.1.0-beta.7
EXT flarum-auth-facebook v0.1.0-beta.6
EXT flagrow-bazaar 0.2.4
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 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
EXT flarum-auth-twitter v0.1.0-beta.6
Base URL: https://community.blocklystudio.xyz
Installation path: /var/www/vhosts/blocklystudio.xyz/community.blocklystudio.xyz
ardacebi commented 6 years ago

screenshot-2018-3-17 blockly studio community 1

My server only gives me 512 MB, how can I get it working?

luceos commented 6 years ago

Edit your php.ini (the one used by your webserver) and change the memory_limit value to 1G.

ardacebi commented 6 years ago

@luceos That's what I've done, but even after doing that: I was getting the same error. Saying its 128M. I don't understand why... I cleared caches, nothing.

I'll try again. Wait.

clarkwinkelmann commented 6 years ago

@TurboProgramming did you try restarting the webserver service or the server itself ?

ardacebi commented 6 years ago

@clarkwinkelmann I'm trying a few solutions now. I'll say it when I'm done.

ardacebi commented 6 years ago

Currently I'm trying to fix this error:

root@server [/var/www/vhosts/blocklystudio.xyz/community.blocklystudio.xyz]# composer require flagrow/bazaar
Using version ^0.2.4 for flagrow/bazaar
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
/usr/bin/composer: line 8: 31727 Killed                  "$COMPOSER_BIN" "$@"
root@server [/var/www/vhosts/blocklystudio.xyz/community.blocklystudio.xyz]# reboot

Broadcast message from root@server.blocklystudio.xyz
    (/dev/pts/0) at 10:59 ...

The system is going down for reboot NOW!
root@server [/var/www/vhosts/blocklystudio.xyz/community.blocklystudio.xyz]# Connection to 147.135.231.220 closed by remote host.
Connection to 147.135.231.220 closed.
luceos commented 6 years ago

reboot? Wait what.. Just increase the php memory limit, there's plenty of google results out there to help you get that done for your OS?

ardacebi commented 6 years ago

That was not the problem. I was reinstalling the extension. Then I saw that error (line 8: 31727 killed...)

Reboot solved that. Now I'm trying enabling the extension with the php memory limit on 1G.

The question is my server only has 512 MB ram, how can it run 1G?

ardacebi commented 6 years ago

OK, it now works.

@luceos @clarkwinkelmann Thank you.

huddleberry commented 5 years ago

OK, it now works.

@luceos @clarkwinkelmann Thank you.

What did you do to make it work?