Closed vqlion closed 4 months ago
AI-Assisted Response:
Summary: The user @vqlion has reported multiple points of confusion and errors encountered while installing Laravel Sail on Ubuntu 22.04.3 LTS. The primary issues revolve around a lack of clarity in the installation instructions, specifically about where to execute certain commands, handling composer errors due to PHP version incompatibility, selection of database during the installation, and operation of Docker containers. Additionally, there are permission issues post-installation leading to non-functioning sections of the web application and problems with displaying data in the "Duplicates" tab.
Categorization: Documentation
Clarifications Sought:
php artisan queue:work
resolve the issue, or are there further problems with the display or functionality?This information would help in updating the documentation with more precise installation instructions and troubleshooting tips for future users.
AI-Assisted Response:
Context: The issue pertains to a lack of clarity in the documentation regarding the installation process of Laravel Sail on Ubuntu 22.04.3 LTS using sail as an install method.
Clarified Details:
The current documentation does not specify the directory for running certain installation commands. It should be noted that commands need to be run in the src
directory.
An error is encountered when executing composer require laravel/sail --dev
:
maatwebsite/excel[3.1.0, ..., 3.1.25] require php ^7.0 -> your php version (8.1.2) does not satisfy that requirement.
Regardless of only having PHP 8.1.2 installed, the error suggests a requirement for PHP 7.x. A workaround is to use the --ignore-platform-reqs
flag with composer to ignore the PHP version requirement.
The documentation does not mention that the php artisan sail:install
command will prompt the user to select a database. The documentation should specifically recommend selecting MySQL as the default option.
Instructions are unclear on switching to the Docker container after bringing up the services with ./vendor/bin/sail up -d
. It requires clearer steps about entering the correct container and avoiding the MySQL container.
Certain tabs in the application ('Network graph', 'Field management > Fields', and 'User profile') are non-functional due to permission issues with the /var/www/html/bootstrap/cache
directory. Permission changes are recommended for resolution.
The "Duplicates" tab fails to display any data, and the Force Run button is inoperative. A potential fix involves executing php artisan queue:work
following composer update
.
Issue Classification: This issue primarily pertains to undocumented steps or clarifications needed within documentation. It also includes a report of permission-related problems and operational bugs after installation.
Questions for @vqlion for Issue Clarification:
Branch doc/issue-470-_DOC_More_detailled_installation_doc created!
What is missing in the documentation? Details during the installation process
Additional information Config: Ubuntu 22.04.3 LTS Install method: sail
Bugs and unclear parts:
Fix: specify you need to be on the
src
directorycomposer require laravel/sail --dev
during sail installation: error message saying(this error message is somehow displayed despite having only PHP 8.1.2 installed)
Fix: ignore the system requirements with
composer require laravel/sail --dev --ignore-platform-reqs
instead of the original commandphp artisan sail:install
during sail installation you get asked what DB you want to install, which is not specified in the docFix: specify you have to choose mysql (default) after this command
./vendor/bin/sail up -d
switch to docker container not really clear for new usersFix: separate the commands that need to be ran in the container and specify how to enter it :
docker exec -it <container-id> /bin/bash
(plus which one to enter to not choose the mysql container)Fix: change the permissions on the cache directory:
chmod -R 770 bootstrap/cache/
php artisan queue:work
aftercomposer update