Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

Toskan's avatar

sail build fails

I run ubuntu 18.04 Im having problems with laravel sail thus when running: ./vendor/bin/sail build --no-cache I get Hit:5 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease Fetched 23.9 kB in 0s (57.7 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package php8.0-cli E: Couldn't find

Toskan's avatar
Toskan's avatar maxflex4yrs agoLaravel
3
1
Last reply by maxflex 4yrs ago
marichardson8008's avatar

Errors running sail build

Running sail build I get the following errors: #7 91.31 Executing: /tmp/apt-key-gpghome.hfO5Uiq59J/gpg.1.sh --homedir /root/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C #7 92.16 gpg: key 00A6F0A3C300EE8C: public key "Launchpad Stable" imported #7 92.16 gpg: Total number processed: 1 #7 92.16 gpg: imported: 1 #7 93.06 Get:1 http:/

marichardson8008's avatar
marichardson8008's avatar danielcoim...3yrs agoServers
2
1
Last reply by danielcoimbra 3yrs ago
Wakanda's avatar

ERROR: Service 'laravel.test' failed to build

Sail Version: 1.12.2 Laravel Version: 8x PHP Version: 8.0 OS: Windows / Linux / macOS 10.13.6 Description: When I run ./vendor/bin/sail up I get the below error => ERROR [ 4/11] RUN apt-get update && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 && mkdir 5.8s Building laravel.test [

Wakanda's avatar
Wakanda's avatar Wakanda4yrs agoLaravel
1
1
Last reply by Wakanda 4yrs ago
megaman's avatar

Swap PDO with a different database access library

Eloquent uses DBAL and PDO. IS it possible to reconfigure Laravel to use other database access libraries such as the SQLite3 PHP extension

megaman's avatar
megaman's avatar Sinnbeck4yrs agoLaravel
4
1
Last reply by Sinnbeck 4yrs ago
jrdavidson's avatar

XDebug and Laravel Sail Config

My Current setup on my app I'm using Laravel Sail and have it setup so that I can use XDebug inside of my VSC IDE. correctly. However if I try and run any artisan command I get the following two errors. Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( Xdebug: [Step Debug] Co

jrdavidson's avatar
jrdavidson's avatar juancho6373yrs agoServers
1
1
Last reply by juancho637 3yrs ago
ozdemiru's avatar

Sail up - Failed to fetch some archives

Hi to all! I installed docker on my Ubuntu20.04 system and installed laravel sail curl -s https://laravel.build/example | bash and tried to sail up cd example && ./vendor/bin/sail up after these steps I got an error which it says E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/publicsuffix/publicsuffix_20210108.1309-1_all.deb Error reading from server

ozdemiru's avatar
ozdemiru's avatar B_XHITMAN4yrs agoLaravel
1
1
Last reply by B_XHITMAN 4yrs ago
armingdev's avatar

Laravel Sail Service 'laravel.test' failed to build : Build failed

Hello everyone, For some reason after upgrading Docker to the latest version 3.4.0 on macOS 11.4, I cant start sail anymore. I have tried with deleting images and everything but no success. I will paste console output. (Reading database ... 21566 files and directories currently installed.) #8 52.74 Preparing to unpack .../nodejs_16.3.0-deb-1nodesource1_arm64.deb ... #8 52.74 U

armingdev's avatar
armingdev's avatar jedidiah2yrs agoCode Review
18
1
Last reply by jedidiah 2yrs ago
ahoi's avatar

Laravel Sail on M1 Mac:

Hello everybody, I just installed my new MacBook coming with M1 cpu. I installed docker, composer and sail and generated this docker-compose.yml: # For more information: https://laravel.com/docs/sail version: '3' services: laravel.test: build: context: ./vendor/laravel/sail/runtimes/8.0 dockerfile: Dockerfile args:

ahoi's avatar
ahoi's avatar automica5yrs agoLaravel
2
3
Last reply by automica 5yrs ago
tangramor's avatar

Nginx + php8-fpm + nodejs docker image for Laravel 8/9/10/11 dev & deployment

https://hub.docker.com/r/tangramor/nginx-php8-fpm If this image helped you, do not skimp on giving a star to it! Based on php:8.5.1-fpm-alpine3.23, node:25.2.1-alpine3.23 (nodejs is not included in most of other nginx-php images...but needed by a lot of php frameworks), with nginx:alpine and richarvey/nginx-php-fpm's Docker script Since php8.4.1_node23.3.0, PHP brotli module i

tangramor's avatar
tangramor's avatar tangramor3yrs agoTips
7
1,325
Last reply by tangramor 3yrs ago
kirkhadden's avatar

Laravel Sail Fails to Build

Hello friends, I'm hoping someone can help out a Laravel beginner here. I've got my Laravel App installed and configured, but when I run sail up, the script fails when it gets to RUN apt-get update. It keeps reporting File has unexpected size as it tries to download ubuntu files. The only thing I've been able to find online about this is that occasionally you may run into this

kirkhadden's avatar
kirkhadden's avatar kirkhadden4yrs agoServers
4
1
Last reply by kirkhadden 4yrs ago
Haseeb69's avatar

giving permissions to storage folder using laravel sail

This is my default docker file generated from sail package i'm new to docker and i don't know when exactly the project is copied into /var/www/html directory to execute the permission where do i put my permissions here's my docker file FROM ubuntu:20.04 LABEL maintainer="Taylor Otwell" ARG WWWGROUP WORKDIR /var/www/html ENV DEBIAN_FRONTEND noninteractive ENV TZ=UT

Haseeb69's avatar
Haseeb69's avatar Haseeb695yrs agoLaravel
2
1
Last reply by Haseeb69 5yrs ago
jet's avatar

SQLSTATE[HY000]: General error: 1 near ")": syntax error

am using sqlite3, and when I want to insert data to the DB it give me this error SQLSTATE[HY000]: General error: 1 near ")": syntax error please can anyone help me here is my insert code <?php try{ $db = new PDO('sqlite:./db/survey.sqlite3'); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = " INSERT INTO survey (

jet's avatar
jet's avatar jet5yrs agoGeneral
2
1
Last reply by jet 5yrs ago
dniccum's avatar

MySQL not found in Docker container

I am currently working adding Docker support to one of my apps. I feel like I am really close. The Docker container builds fine with no errors but when I try to run the database migrations within the container, I get this error: Error Output: ================ sh: 1: mysql: not found Any help would be appreciated. docker-compose.yml version: '3' services: #PHP Service app:

dniccum's avatar
dniccum's avatar projectcam...4yrs agoCode Review
11
3
Last reply by projectcamp 4yrs ago
Lucrea's avatar

Laravel sail using yarn

Currently laravel sail only supports npm command on the docs. I already publish the Dockerfile php artisan sail:publish. And then customize the Dockerfile as follows FROM ubuntu:20.04 LABEL maintainer="Taylor Otwell" ARG WWWGROUP WORKDIR /var/www/html ENV DEBIAN_FRONTEND noninteractive ENV TZ=Asia/Jakarta RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &&a

Lucrea's avatar
Lucrea's avatar Sergiu175yrs agoLaravel
1
1
Last reply by Sergiu17 5yrs ago
ThetNweEaint's avatar

Illuminate\Database\QueryException: could not find driver (SQL: PRAGMA foreign_keys = ON;)

Hi im trying to run the example laravel test, I have set the data base values as in phpunit.xml. I am getting the error Tests\Feature\ExampleTest::testBasicTest Illuminate\Database\QueryException: could not find driver (SQL: PRAGMA foreign_keys = ON;) I have enabled extensions sqlite3 and pdo_sqlite. Help would be appreciated

ThetNweEaint's avatar
ThetNweEaint's avatar jlrdw5yrs agoLaravel
1
1
Last reply by jlrdw 5yrs ago
PetroGromovo's avatar

laravel migration raise could not find driver under docker

Hello, I installed laravel 5.8(with mysql) app under docker with php:7.1-apache and running the migration I got error that could not find driver : root@3b62eed328c1:/var/www/ticketly_docker_root# php artisan migrate In Connection.php line 664: could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations and table_

PetroGromovo's avatar
PetroGromovo's avatar Sinnbeck5yrs agoLaravel
5
1
Last reply by Sinnbeck 5yrs ago
paboo's avatar

Call to undefined function Intervention\Image\Gd\imagecreatefromjpeg()

in my docker file .yml ARG PHP_VERSION FROM php:${PHP_VERSION}-fpm MAINTAINER ông bành tổ Đỗ Xuân Anh "[email protected]" RUN apt-get update && \ apt-get install -y \ libfreetype6-dev \ libwebp-dev \ libjpeg62-turbo-dev \ libpng-dev \ nano \ libgmp-dev \ libldap2-dev \ netcat \ sqlite3 \ libsqlite3-dev &&

paboo's avatar
paboo's avatar Sinnbeck5yrs agoLaravel
3
1
Last reply by Sinnbeck 5yrs ago
PetroGromovo's avatar

In docker composer container raise error : Carbon 1 is deprecated

Hello, I tried to run under docker my laravel 5.5 / postgres 9 app and in composer container I got error : Carbon 1 is deprecated, see how to migrate to Carbon 2. https://carbon.nesbot.com/docs/#api-carbon-2 You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. My composer.json: { "name"

PetroGromovo's avatar
PetroGromovo's avatar PetroGromo...6yrs agoGeneral
0
1
Gabotronix's avatar

Issue with composer and tntsearch

I'm trying to install tnt search driver for laravel scout with composer but I'm getting the following error: Your requirements could not be resolved to an installable set of packages. Problem 1 - teamtnt/tntsearch v2.1.0 requires ext-sqlite3 * -> the requested PHP extension sqlite3 is missing from your system. - teamtnt/tntsearch v2.0.0 requires ext-sqlite3 * ->

Gabotronix's avatar
Gabotronix's avatar sedersmith6yrs agoGeneral
2
1
Last reply by sedersmith 6yrs ago
PetroGromovo's avatar

Running docker instance with LAMP got python not found error

Hello, in my Kubuntu 18.04 I installed docker-ce and running LAMP instance suffer error that python not found: $ docker-compose up -d --build Building web Step 1/3 : FROM php:7.2-apache ---> 35e5c60e1f7d Step 2/3 : RUN apt-get update && apt-get install -y libfreetype6-dev libwebp-dev libjpeg62-turbo-dev libpng-dev nano git-core curl

PetroGromovo's avatar
PetroGromovo's avatar skauk6yrs agoGeneral
1
1
Last reply by skauk 6yrs ago
untymage's avatar

Composer "suggests installing"

I tried to install getid3 through composer but it shows some notices: Installing james-heinrich/getid3 (v1.9.17): Downloading (100%) james-heinrich/getid3 suggests installing ext-com_dotnet (COM extension is required when loading files larger than 2GB on Windows.) james-heinrich/getid3 suggests installing ext-dba (DBA extension is required to use the DBA database as a cache s

untymage's avatar
untymage's avatar untymage6yrs agoGeneral
2
1
Last reply by untymage 6yrs ago
mstdmstd's avatar

How to add npm into docker project based on apache?

Hello, How correctly add npm / nodejs to my php 7.2 / laravel 5 docker project based on php:7.2-apache ? In my web/Dockerfile.yml I added line with " nodejs ": FROM php:7.2-apache RUN apt-get update && \ apt-get install -y \ libfreetype6-dev \ libwebp-dev \ libjpeg62-turbo-dev \ libpng-dev \ nano \ libgmp-dev \ libldap2-dev

mstdmstd's avatar
mstdmstd's avatar Yarosh5yrs agoGeneral
3
1
Last reply by Yarosh 5yrs ago
mstnorris's avatar

Very slow PHPUnit tests using PHP7.2 or PHP7.1.

If I run my tests using PHP7.2 or PHP7.1 they are about 3x slower than if I run them using PHP7.0. Is there anyway to get to the bottom of why this is happening? I'm using Laravel 5.5.20 and Laravel Homestead 7.0.1. I have 47 rather simple tests, some hitting the database, others just simple assertions; so there isn't anything that should take ages. I installed johnkary/phpunit

mstnorris's avatar
mstnorris's avatar jesseschut...5yrs agoTesting
33
1
Last reply by jesseschutt 5yrs ago
bulgaria_mitko's avatar

Database (database) does not exist. (SQL: select * from "cards")

Hello there its me again :) other yet other problem. i just love laravel :D The course that it should take me 30 min its taking me 3 days :D but never the less right now i manage to migrate succesfully. my database name is database.sqlite and its insite the database folder in my project. After migrating i did php artisan tinker and added two rows into my database. DB::table(

bulgaria_mitko's avatar
bulgaria_mitko's avatar tomi9yrs agoLaravel
4
1
Last reply by tomi 9yrs ago
xicath's avatar

PHP7 require modul for best performance in laravel5.2

I have run php7 in centos7 and install laravel5.2 i want to know if all this php7 modul require for laravel [PHP Modules] calendar Core ctype curl date dba dom exif fileinfo filter ftp gd gettext gmp hash iconv json libxml mbstring mcrypt mysqli openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar readline Reflection session shmop SimpleXML soap sockets SPL sqlite3 standard tokeniz

xicath's avatar
xicath's avatar xicath9yrs agoServers
2
1
Last reply by xicath 9yrs ago
roadrunner89's avatar

php artisan migrate not working

when I type 'php artisan migrate' I get 2 errors: [Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database (SQL: select * from sqlite_master where type = 'table' and name = migrations) [PDOException] SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database I am using windows and have sqlite3 installed. Has a

roadrunner89's avatar
roadrunner89's avatar roadrunner...10yrs agoLaravel
5
1
Last reply by roadrunner89 10yrs ago
jbowman99's avatar

Login with Username and Password only

I am trying to authenticate a user based only on username and password. Had it working and now it doesn't work. the change occurred after a switch from sqlite3 to MySql, but from what I can tell nothing was overwritten. Not sure what i changed, or how it changed. I scanned through all traits and auth controllers and I can see no signs of an email being a required field to authe

jbowman99's avatar
jbowman99's avatar jbowman9910yrs agoGeneral
1
1
Last reply by jbowman99 10yrs ago
evsign's avatar

something strange with migrations

Hi. When i create new migration with renaming and adding new column then migration was sucсessfully executed, but in table was occurred only renaming without adding. But when i create two separate migration for every action then all ok. Database is sqlite3. Schema::table('articles', function(Blueprint $table) { $table->text('description')->default('');

evsign's avatar
evsign's avatar evsign11yrs agoGeneral
13
1
Last reply by evsign 11yrs ago
kfirba's avatar

Auth::attempt always fails in tests

Hello! I've written a test that ensures that the registration and authentication both work. However, when I try to login in the tests, it always returns false even though I can var_dump the user that has been added in the step before. My code: /** * @When I register :name :username * @param $name * @param $username */ public function iRegister($name,

kfirba's avatar
kfirba's avatar kfirba11yrs agoGeneral
0
1

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.