ecryptfs: DDev Magento Linux快速启动设置失败,显示“文件名过长”。

huangapple go评论70阅读模式
英文:

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

Error

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

Error

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.

huangapple
  • 本文由 发表于 2023年6月8日 07:05:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76427607.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定