nemert
August 17, 2021, 4:20am
1
Hello, I’m trying to zip my wordpress site (about 200MB) from filemanager but after 5min the process stops with a message “unknown error”. If i zip smaller folders/files which require less than 5min to create the zip file, everything works fine. I set the max_execution_time to 1200 for php but nothing changed. So how can i deal with this issue?
thanks
eris
August 17, 2021, 4:56am
2
“We” use hestia-php for zip operations and it un affected by the general php.ini config.
Known issue it is so slow.
nemert
August 17, 2021, 9:51am
3
ok, it is slow but is it possible to increase the execution_time to about 10 or 15mins so as to give the necessary time to hestia-php to create the zip file?
1 Like
eris
August 18, 2021, 8:38am
4
You can modify /usr/local/hestia/php/etc/php-fpm/php-fpm.conf how ever it will get overwritten during each update of hestia-php
1 Like
eris
August 18, 2021, 8:39am
5
A better way would be improving zip function like we did with uncompress
<?php
namespace Filegator\Services\Archiver\Adapters;
use Filegator\Container\Container;
use Filegator\Services\Archiver\ArchiverInterface;
use Filegator\Services\Service;
use Filegator\Services\Storage\Filesystem as Storage;
use Filegator\Services\Tmpfs\TmpfsInterface;
class HestiaZipArchiver extends ZipArchiver implements Service, ArchiverInterface
{
protected $container;
public function __construct(TmpfsInterface $tmpfs, Container $container)
{
$this->tmpfs = $tmpfs;
$this->container = $container;
}
This file has been truncated. show original
1 Like
That makes a lot of sense.
nemert
August 19, 2021, 8:32am
7
Check this filegator post. i think its relevant
opened 11:32AM - 01 Jul 21 UTC
**Describe the bug**
When trying to zip a specific folder I get the error not… ed in the logs below. On other folders it works fine, so I assume it must have something to do with the folder I'm trying to zip, but I can not figure out what it is? Did you encounter that problem before or have an idea what might cause it?
**Expected behavior**
Zipping the folder as it works on other folders.
**Logs**
First various hundreds/thousands of entries like this are created:
```
default.NOTICE: E_USER_NOTICE: Invalid size {"code":1024,"message":"Invalid size","file":"/path/to/filegator/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php","line":3422} []
default.NOTICE: E_USER_NOTICE: Connection closed by server {"code":1024,"message":"Connection closed by server","file":"/path/to/filegator/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php","line":3757} []
```
At some point it changes to errors like this:
```
default.NOTICE: E_USER_NOTICE: Connection closed prematurely {"code":1024,"message":"Connection closed prematurely","file":"/path/to/filegator/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php","line":3387} []
default.NOTICE: E_USER_NOTICE: Connection closed by server {"code":1024,"message":"Connection closed by server","file":"/path/to/filegator/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php","line":3757} []
```
And then it eventually crashes with a timeout:
```
default.ALERT: Fatal Error (E_ERROR): Maximum execution time of 60 seconds exceeded {"code":1,"message":"Maximum execution time of 600 seconds exceeded","file":"/path/to/filegator/vendor/monolog/monolog/src/Monolog/Logger.php","line":324,"trace":null} []
default.ALERT: Fatal Error (E_ERROR): Maximum execution time of 60 seconds exceeded {"code":1,"message":"Maximum execution time of 600 seconds exceeded","file":"/path/to/filegator/vendor/league/flysystem-ziparchive/src/ZipArchiveAdapter.php","line":85,"trace":null} []
```
**Environment**
- FileGator Version: 7.5.2
- Server: Apache 2.4.41 on Debian Linux
- PHP Version: PHP 7.4
- Browser: Chrome, Firefox
1 Like
eris
August 19, 2021, 8:50am
8
Issues with any filemanger:
We connect it over ssh to prevent any issues with permissions how ever this makes it slower
Webpanel runs currently under the admin user. So any files uploaded to /home/user/ will get admin permissions if we use local
Hestia-php runs with less memory / processes and php is not the most optimal unzip / zip system
Option would be something link v-compress-file/folder with bash and make a implementation based of this.
2 Likes
v-zip-file
v-unzip-file
v-export-db
v-import-db
system
Closed
September 18, 2021, 9:51am
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.