filament:install Error 255

I am attempting to upgrade from docker filament v2 to v3. The following plugins installed: awcodes/overlook bezhansalleh/filament-shield kenepa/resource-lock z3d0x/filament-logger dutchcodingcompany/filament-socialite I had to remove all the plugins when upgrading to livewire v3 as they were causing dependency conflicts. Once I upgraded livewire, I ran the filamentv3 upgrade script provided in the docs and all looked well. I upgraded filament in composer.json and added all my plugins, and ran composer update. Once that was completed I attempted to run php artisan filament:install I get "Error: 255", see the console output below
artisan filament:install
Creating imm-server_artisan_run ... done
⇂ public/js/filament/forms/components/color-picker.js
⇂ public/js/filament/forms/components/date-time-picker.js
⇂ public/js/filament/forms/components/file-upload.js
⇂ public/js/filament/forms/components/key-value.js
⇂ public/js/filament/forms/components/markdown-editor.js
⇂ public/js/filament/forms/components/rich-editor.js
⇂ public/js/filament/forms/components/select.js
⇂ public/js/filament/forms/components/tags-input.js
⇂ public/js/filament/forms/components/textarea.js
⇂ public/js/filament/tables/components/table.js
⇂ public/js/filament/widgets/components/chart.js
⇂ public/js/filament/widgets/components/stats-overview/stat/chart.js
⇂ public/js/filament/filament/app.js
⇂ public/js/filament/filament/echo.js
⇂ public/js/filament/notifications/notifications.js
⇂ public/js/filament/support/async-alpine.js
⇂ public/js/filament/support/support.js
⇂ public/css/filament/forms/forms.css
⇂ public/css/filament/support/support.css
⇂ public/css/filament/filament/app.css

INFO Successfully published assets!

INFO Configuration cache cleared successfully.

INFO Route cache cleared successfully.

ERROR: 255
artisan filament:install
Creating imm-server_artisan_run ... done
⇂ public/js/filament/forms/components/color-picker.js
⇂ public/js/filament/forms/components/date-time-picker.js
⇂ public/js/filament/forms/components/file-upload.js
⇂ public/js/filament/forms/components/key-value.js
⇂ public/js/filament/forms/components/markdown-editor.js
⇂ public/js/filament/forms/components/rich-editor.js
⇂ public/js/filament/forms/components/select.js
⇂ public/js/filament/forms/components/tags-input.js
⇂ public/js/filament/forms/components/textarea.js
⇂ public/js/filament/tables/components/table.js
⇂ public/js/filament/widgets/components/chart.js
⇂ public/js/filament/widgets/components/stats-overview/stat/chart.js
⇂ public/js/filament/filament/app.js
⇂ public/js/filament/filament/echo.js
⇂ public/js/filament/notifications/notifications.js
⇂ public/js/filament/support/async-alpine.js
⇂ public/js/filament/support/support.js
⇂ public/css/filament/forms/forms.css
⇂ public/css/filament/support/support.css
⇂ public/css/filament/filament/app.css

INFO Successfully published assets!

INFO Configuration cache cleared successfully.

INFO Route cache cleared successfully.

ERROR: 255
I get the same error when running php artisan view:clear
Solution:
It was a permissions issue I think, when I initially setup this project I had setup my artisan container incorrectly. Fixed that and it worked fine after that. I am upgraded to Filament 3. Though now I am having styling issues
No description
Jump to solution
16 Replies
CarbonNanotubes
I'm not really sure where to look to solve the issue. Seems like error 255 is just a generic "I don't know what to do" type of error?
awcodes
awcodes4w ago
did you upgrade all your plugin versions too.
CarbonNanotubes
yes I did, I just noticed that I had done things out of order compared to the docs. I had upgraded livewire first instead of filament first which caused those dependency issues. So I reset everything back to my latest commit and tried again. This time 1. Upgrade filament with upgrade package 2. Update all plugins to the latest version 3. Update Livewire to V3 4. run artisan filament:install Error: 255 still returned Is the last step of the install command to clear view cache?
awcodes
awcodes4w ago
i think you need to upgrade filament without the plugins, run the install, then upgrade the plugins after that.
CarbonNanotubes
ok I will try that
awcodes
awcodes4w ago
New major version updates aren’t usually easy.
CarbonNanotubes
yeah I'm aware lol Same error. I will revert back to last good commit and try again Same error still I'm going to double check if I am able to run artisan view:clear before the upgrade
CarbonNanotubes
I get the error before the upgrade as well....
awcodes
awcodes4w ago
hmm. then something in you app is off and causing composer / artisan to error out.
CarbonNanotubes
yes I will look into that and reply back here with my findings
awcodes
awcodes4w ago
pending something weird in the app like a missing comma or something along those lines this should make the upgrade pretty seemless,
composer require filament/upgrade:"^3.2" -W --dev

vendor/bin/filament-v3
composer require filament/upgrade:"^3.2" -W --dev

vendor/bin/filament-v3
Solution
CarbonNanotubes
It was a permissions issue I think, when I initially setup this project I had setup my artisan container incorrectly. Fixed that and it worked fine after that. I am upgraded to Filament 3. Though now I am having styling issues
No description
awcodes
awcodes4w ago
Maybe a cash issue. Or try filament:assets. If you have a custom theme you’ll need to rebuild too.
CarbonNanotubes
I didn't think this project had a custom theme but apparently it did. I'm not sure what I was thinking back when I set this up initially but I had defined a custom theme that was just pulling in the filament.css file from the vendor directory? After performing a search for filament.css I was able to see that in the app service provider I was calling Filament::registerViteTheme('resources/css/filament.css');, removing that allowed the proper styles to load.
CarbonNanotubes
Thanks for your help with this, I really appreciate it!
Want results from more Discord servers?
Add your server