(c.f. also the discussion brought by @ljf : Swap or not swap on an SDcard? )
Yes, common problem with Composer. That’s the composer create-project
which have problem because there is too much commands done at the same moment. It’s the reason, normally, I would prefer to git clone
first and then to do a composer install
(it’s what I did in the old Refactoring github branche ).
Other solution : do a memory_limit.
PS: the rpi has very often this problem and even big servers which have RAM and SWAP (surely even my server who have 12GB RAM and 24GB Swap).
@frju365, there is actually already a -d memory_limit=-1
in my exec_composer
… and I totally missed out on your modifications in your branch (i.e. how to throw away some good work), sorry !
@Issa, thank you for persevering in trying to install the app. Let’s try something. Can you clone the repo branch patch-memory
I have just pushed and trying installing it ? Let’s see if it will be more gentle with your servers’ memory.
EDIT: OH WAIT, I thought it was Flarum’s install that crashed, it’s actually the sso extension’s.
Hello;
so i try this :
https://github.com/YunoHost-Apps/flarum_ynh/tree/patch-memory
i can’t install it :
You will need to use Command line. Branch are not supported on the Admin interface.
Use :
sudo yunohost app install https://github.com/YunoHost-Apps/flarum_ynh/tree/patch-memory
Thanks but not working :
root@YunoHost:~# sudo yunohost app install https://github.com/YunoHost-Apps/flarum_ynh/tree/patch-memory
Available domains:
- domaine.fr
- youtube.domaine.fr
- youtube-encoder.domaine.fr
Choose a domain name for Flarum (default: domaine.fr):
Choose a path for Flarum (default: /flarum):
Choose the admin user (required for automatic post-installation): user01
Choose a title for your forum (required for automatic post-installation) (default: ): domaineForum
Is it a public application? [0 | 1] (default: 1):
Choose the application language [fr | en | de] (default: en): fr
Warning: Cloning into '/tmp/flarum'...
Warning: Note: checking out '6916205522e7d45df53dff65db077a9e97504a52'.
Warning:
Warning: You are in 'detached HEAD' state. You can look around, make experimental
Warning: changes and commit them, and you can discard any commits you make in this
Warning: state without impacting any branches by performing another checkout.
Warning:
Warning: If you want to create a new branch to retain commits you create, you may
Warning: do so (now or later) by using -b with the checkout command again. Example:
Warning:
Warning: git checkout -b new_branch_name
Warning:
Warning: The following exception is caused by a lack of memory or swap, or not having swap configured
Warning: Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details
Warning:
Warning: PHP Warning: proc_open(): fork failed - Cannot allocate memory in phar:///var/www/flarum/composer.phar/vendor/symfony/console/Application.php on line 958
Warning:
Warning: [ErrorException]
Warning: proc_open(): fork failed - Cannot allocate memory
Warning:
Warning:
Warning: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
Warning:
Warning: !!
Warning: flarum's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning:
Warning: Removing database
Warning: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Warning: /tmp/flarum wasn't deleted because it doesn't exist.
Warning: /etc/nginx/conf.d/domaine.fr.d/flarum.conf wasn't deleted because it doesn't exist.
Warning: /etc/php5/fpm/pool.d/flarum.conf wasn't deleted because it doesn't exist.
Warning: Remove the user flarum
Success! The SSOwat configur
Can you do df -h
and give the result of the command ? And could you see if you have a Swap partition with sudo fdisk -l
?
root@YunoHost:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.7G 11G 27% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 462M 47M 415M 11% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
/dev/mmcblk0p1 63M 21M 42M 34% /boot
root@YunoHost:~# sudo fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 15 GiB, 16088301568 bytes, 31422464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x34edcb80
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA)
/dev/mmcblk0p2 137216 31422463 31285248 14.9G 83 Linux
You have no swap partition… perhaps add one swapfile and see if it works. To add one, see : Swap or not swap on an SDcard? . (Perhaps you added one already…)
with sd card too dangerous
if i can found a way to add a usb harddisk attached on the raspberry ?
using sdcard only too boot and the hardisk for evry else
this is a problem
We did documentation in french ( we didn’t translate it yet) to mount an HDD (or USB) in a computer. https://yunohost.org/#/external_storage_0_intro_fr (there is Nexcloud writtent but it’s ok for any other apps too).
the how to is not finished, i have some blank page with link of the different step
yeah… a little bug apparently. In fact it’s finished, you can see :
- https://github.com/YunoHost/doc/blob/master/external_storage_0_intro_fr.md
- https://github.com/YunoHost/doc/blob/master/external_storage_1_prep_fr.md
- https://github.com/YunoHost/doc/blob/master/external_storage_2_mount_fr.md
It’s weird…
Thanks
i m looking this page
for noob like me need more information on how prepare disk
For a linux we need :
Swap partition
Data partition
i think we need an other but i don’t remember
no. But you can separate ‘/’ (root of linux) in different partitions : for example one for /var, one for /home, one for /tmp, /boot… but it’s more difficult.
yeaaa j’ai reussi à ajouter mon disque dans le FSTAB,
mais maintenant c’est pas trés clair le comment mettre toute les données de la sd card sur le disque dur ???
ok so now how create a swap ?
how add all my yunohost on the HDD usb and not using the sd card ?
thanks
information of my partition now :
root@YunoHost:~# ll
-bash: ll: command not found
root@YunoHost:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 4.2G 9.9G 30% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 462M 6.4M 456M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
/dev/mmcblk0p1 63M 21M 42M 34% /boot
/dev/sda1 458G 73M 435G 1% /media/stockage
du coup j’ouvre un autre topic car on sort de l’information de flarun ici
Hi. cannot install it.
[InvalidArgumentException]
Warning: Could not find package tituspijean/flarum-ext-auth-ssowat in a version matching 0.4.x-dev
both from yunohost admin panel and terminal, both master and memory patch branch.
Salud
Hi !
I messed up with Packagist, and the installation script indeed could not find the 0.4 version. Can you try again directly from the repository ? I will make a PR to update the community.json.
For the next version I will try to include the extension directly in the package, and not rely on packagist to install it.
Edit : PR made. https://github.com/YunoHost/apps/pull/434
Hello,
there so i have sucessefull installed FLARUN on my Yunhost
so cool !!!
so now i have to using it
really thanks !!!
Bonjour à vous,
suite à un problème de yunohost, je suis reparti sur une install neuf,
probléme je n’arrive plus à installer FLarum,
l’install ce passe bien,
mais je me retrouve avec une page blanche, sans information quand je lance l’application,
svp comment débuger l’application
j’ai trouvé des logs
root@YunoHost:~# tail -f /var/log/php5-fpm.log
[13-May-2018 06:25:14] NOTICE: error log file re-opened
[13-May-2018 08:12:20] WARNING: [pool flarum] child 20289, script ‘/var/www/flarum//index.php’ (request: “GET /flarum/index.php”) executing too slow (5.932578 sec), logging
[13-May-2018 08:12:20] NOTICE: child 20289 stopped for tracing
[13-May-2018 08:12:20] NOTICE: about to trace 20289
[13-May-2018 08:12:20] NOTICE: finished trace of 20289
[13-May-2018 08:13:35] WARNING: [pool flarum] child 20289 said into stderr: “NOTICE: PHP message: PHP Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/flarum/vendor/matthiasmullie/minify/src/Minify.php on line 290”
merci