repman-io / repman

Repman - PHP Repository Manager: packagist proxy and host for private packages
https://repman.io
MIT License
513 stars 106 forks source link

Self host installation #582

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello,

Just installed repman using the documentation :

$ git clone https://github.com/repman-io/repman.git and then :

$ docker-compose up

But, I got a 500 error. After adding some debug, I found that it couldnt create those files :

and they were not in append mode. The volumes are in rw, it created all the directories in /var except issues with those ones.

And, I also have permissions issues trying to invite a member to an organization...

Here is the log :

: failed to open stream: Permission denied at /app/vendor/symfony/cache/Traits/FilesystemCommonTrait.php:99)","cache-adapter":"Symfony\\Component\\Cache\\Adapter\\PhpFilesAdapter"}

or [2022-04-20T14:45:11.561776+00:00] cache.WARNING: Failed to save key "ArrayAccess" of type Symfony\Component\Validator\Mapping\ClassMetadata: fopen(/app/var/cache/prod/pools/YVeY-FPnx4/b81e68ac8aa5): failed to open stream: Permission denied {"key":"ArrayAccess","exception":"[object] (ErrorException(code: 0): fopen(/app/var/cache/prod/pools/YVeY-FPnx4/b81e68ac8aa5): failed to open stream: Permission denied at /app/vendor/symfony/cache/Traits/FilesystemCommonTrait.php:99)","cache-adapter":"Symfony\\Component\\Cache\\Adapter\\PhpFilesAdapter"} []

Any idea ?

LukaszWasko commented 2 years ago

I have faced the same issue. Resolution:

chown www-data:www-data -R /app/var/log

in app container. You welcome ;)