Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project directory "/srv/pim" is not empty. #20234

Open
Houda-Ahbella opened this issue Sep 6, 2023 · 4 comments
Open

Project directory "/srv/pim" is not empty. #20234

Houda-Ahbella opened this issue Sep 6, 2023 · 4 comments

Comments

@Houda-Ahbella
Copy link

🐛 I'm reporting a Bug 🐛

Please update to the last available patch for the version.

For version >= 1.4, please go to "System > system info", download the text report and attach it to the issue.

Then explain the expected behavior, the encountered behavior and the steps to reproduce.

Please note that we do offer support only in a "best effort" mode without any engagment on the resolution time.

🔧 I'm submitting a Feature Request 🔧

Explain the use case and the expected behavior. We will consider it and submit to the Core team.

I'm asking a Question

Please submit your question via the Akeneo Slack user group https://akeneopim-ug.herokuapp.com/

📎 I'm using the Enterprise Edition 📎

Please use your access to our support service desk.

@Patchfox
Copy link

Patchfox commented Sep 11, 2023

I ran into the same issue. You have to verify that the /srv/pim folder is empty completely, also without .xxx. files like .git. Otherwise, the system will not copy the project into this folder.
Run the commands in the empty /srv/pim folder. Your user needs write permissions in this folder.

@rmxnnkoko
Copy link

My clean installing :
1- Install yarn : https://linuxhint.com/install_yarn_ubuntu/

2- Install node : sudo apt install npm

3- mkdir srv/pim

4- chmod 777 srv

5- cd srv/pim

6- chmod 777 pim

7 - Install Docker : https://docs.docker.com/engine/install/ubuntu/
8- Install docker compose : sudo apt install docker-compose

9 - Donwload Akeneo docker in /srv/pim : https://github.com/akeneo/pim-community-standard

10 - enable 8080 port : sudo ufw allow 8080/tcp

11 - show Akeneo in browser: http://ip-adress:8080/

Hope it'll be useful .

@cache-your-dreams
Copy link

@Houda-Ahbella You'll need to provide more details for the steps you're taking to produce the error as there are many elements that could be responsible.

There is a chance that this issue is a duplicate of #13432 so it could be worth reading this thread as well.

My personal experience was that you need to make sure the folder you are installing into is completely empty, meaning no hidden files (even the .git folder).

@Gamesh
Copy link

Gamesh commented May 9, 2024

just had a similar issue on macOS

running

docker run -ti -u www-data --rm \
    -v $PWD:/Users/jusurb/Projects/pim -v ~/.composer:/var/www/.composer -w /Users/jusurb/Projects/pim \
    akeneo/pim-php-dev:8.1 php /usr/local/bin/composer create-project \
    akeneo/pim-community-standard /Users/jusurb/Projects/pim -vv

will produce

[InvalidArgumentException]
Project directory "/Users/jusurb/Projects/pim" is not empty.

but such folder doesn't exist at all

➜  Projects ls -ls pim
ls: pim: No such file or directory
➜  Projects ls -ls pim/
ls: pim/: No such file or directory
➜  Projects ls -la | grep pim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants