Closed grassel82 closed 3 years ago
Hey @grassel82,
did you create the data/LazyServices/Proxy
directory?
I just did a test install on Centos 8.3 and there were no problems. During the week I will try to release a tutorial for Centos 8.3 on our website.
Kind regards,
Marc Sparwel
Hello @grassel82,
@KonzeptAcht , Thanks for your comment.
In additional, you need also to validate if your /var/www/html/monarc/fo/data directory is writable for the www-data user.
Hi,
we are in the process of installing Monarc at our company to be used by the DPO and myself. Our company policy requires Red Hat 8 and no Debian/Ubuntu. As the OVA file published is a little old from the specs (Ubuntu 18.04), I tried to implement everything on Centos 8 before pushing the configuration to Red Hat 8 virtual machine.
I followed the guide from https://www.konzeptacht.de/monarc-installation-ubuntu-18-04 with the option 20.04. I tried the guide out, install on ubuntu-20.04 worked flawlessy. I took the same steps, adapted a few, but then when connecting the first time to the main page, i encounter a strange HTTP error 500.
After debugging and analysing log files from PHP, in the apache log files were no errors, the following error is shown: `[28-Feb-2021 23:17:28 Europe/Luxembourg] PHP Fatal error: Uncaught ProxyManager\Exception\FileNotWritableException: Could not move file "/tmp/temporaryProxyManagerFile7WbrC0" to location "/var/www/html/monarc/fo/data/LazyServices/Proxy/ProxyManagerGeneratedProxyPMMonarcCoreModelTableUserTokenTableGenerated645f96ba34a1ea00b6312cacf4de5b99.php": either the source file is not readable, or the destination is not writable in /var/www/html/monarc/fo/vendor/ocramius/proxy-manager/src/ProxyManager/Exception/FileNotWritableException.php:19 Stack trace:
0 /var/www/html/monarc/fo/vendor/ocramius/proxy-manager/src/ProxyManager/GeneratorStrategy/FileWriterGeneratorStrategy.php(85): ProxyManager\Exception\FileNotWritableException::fromInvalidMoveOperation()
1 /var/www/html/monarc/fo/vendor/ocramius/proxy-manager/src/ProxyManager/GeneratorStrategy/FileWriterGeneratorStrategy.php(58): ProxyManager\GeneratorStrategy\FileWriterGeneratorStrategy->writeFile()
2 /var/www/html/monarc/fo/vendor/ocramius/proxy-manager/src/ProxyManager/Factory/AbstractBaseFactory.php(110): ProxyManag in /var/www/html/monarc/fo/vendor/laminas/laminas-servicemanager/src/ServiceManager.php on line 772`
So he is not able to write a temporary file in /tmp/... folder or copy an existing file from there to "ProxyManager" folder in Data directory.
I have disabled SELINUX to be sure that no blocking is on the /tmp folder for processes.
Setup:
Centos 8.3: Linux localhost.localdomain 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
PHP: 7.4.15 (cli) (built: Feb 2 2021 14:19:57) ( NTS )
mariadb-server.x86_64: 3:10.3.27-3.module_el8.3.0+599+c587b2e7
nodejs: v14.16.0
composer: 2.0.11
Does somebody has a solution to this problem?
Kind regards,
Gilles Rassel City of Luxembourg Luxembourg