英文:
ecryptfs: DDev Magento linux quick start setup failing on "file name too long"
问题
Here are the translated parts:
Ubuntu details:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
I am trying to install magento on my linux machine. I am using ddev quick start for magento.
https://ddev.readthedocs.io/en/stable/users/quickstart/#magento-2
I am getting the following error for this command:
ZipArchive::extractTo(/var/www/html/vendor/composer/90d2dd07/dev/tests/acce
ptance/tests/_data/adobe-base-image-long-name-image-long-name-image-long-na
me-image-long-name-image-long-name-image-long-name-image-long-name-image-lo
ng-name-image-long-name.jpg): Failed to open stream: File name too long
I think it is due to char limitation in linux. Is there any way i can bypass it?
I cant run the command in the root folder, as we cant run ddev with sudo.
英文:
Ubuntu details:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
I am trying to install magento on my linux machine. I am using ddev quick start for magento .
https://ddev.readthedocs.io/en/stable/users/quickstart/#magento-2
I am getting the following error for this command:
> ZipArchive::extractTo(/var/www/html/vendor/composer/90d2dd07/dev/tests/acce
ptance/tests/_data/adobe-base-image-long-name-image-long-name-image-long-na
me-image-long-name-image-long-name-image-long-name-image-long-name-image-lo
ng-name-image-long-name.jpg): Failed to open stream: File name too long
I think it is due to char limitation in linux. Is there any way i can bypass it?
I cant run the command in the root folder, as we cant run ddev with sudo.
答案1
得分: 0
如@rfay所指出,这是因为我的主目录使用ecryptfs加密,导致文件名加密达到限制。
为了解决此问题,我已经-
在我的主目录之外创建了一个单独的目录,并设置了适当的权限以允许ddev访问它。以下是一份逐步指南:
创建一个新目录:选择一个在您的主目录之外的位置,例如/opt/magento。
sudo mkdir /opt/magento
设置所有权和权限:将目录的所有权分配给我的用户帐户,并设置适当的权限。
sudo chown -R yourusername:yourusername /opt/magento
sudo chmod -R 755 /opt/magento
然后我只是使用这个文件夹来存放Magento。
英文:
As @rfay has pointed out, this was due to my home folder being encrypted using ecryptfs, leading to filename encryption hitting the limit.
As a workaround, I have-
created a separate directory outside of my home directory and set the appropriate permissions to allow ddev to access it. Here's a step-by-step guide:
Create a new directory: Choose a location outside your home directory, for example, /opt/magento.
sudo mkdir /opt/magento
Set ownership and permissions: Assign ownership of the directory to my user account and set the appropriate permissions.
sudo chown -R yourusername:yourusername /opt/magento
sudo chmod -R 755 /opt/magento
Then i just used this folder for magento.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论