InvalidArgumentException: View [welcome] not found

1,484 views
Skip to first unread message

hiroki yasui

unread,
Dec 10, 2016, 11:24:42 AM12/10/16
to Laravel Brasil
Hi guys,

My environment is MacOS10.11.6, PHP7.0, Laravel5.3 and on Docker.

I'm struggling to handle this error.
local.ERROR: InvalidArgumentException: View [welcome] not found. in /opt/app/www/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137
Stack trace:

Some say, execute $ php artisan config:clear.
After that,

Another error happed.
NULL.ERROR: RuntimeException: 
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

To handle this error, I did these commad.
$ php artisan key:generate
$ php artisan config:clear
$ php artisan config:cache

But InvalidArgumentException error come again.

How sould I manage this situation??

Thank you.

Renan Paes Leme

unread,
Dec 10, 2016, 11:31:01 AM12/10/16
to Laravel Brasil
I think you're trying to render a view that doesn't exist.

Check if welcome file exists on views directory.

--
Você recebeu essa mensagem porque está inscrito no grupo "Laravel Brasil" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para laravel-brasil+unsubscribe@googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

hiroki yasui

unread,
Dec 10, 2016, 11:39:55 AM12/10/16
to laravel...@googlegroups.com
Thank you Renan,
Though I checked welcome.blade.php, it seems existing>
But error show 

local.ERROR: ErrorException: 
file_put_contents(/Users/xx/xx/proj/storage/framework/sessions/TscoVrHvxGDk0MJ9J3UhhztsP37bBkBtzL0I7m7I):
failed to open stream: No such file or directory in /opt/app/www/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:111

But there is nothing files in storage/framework/sessions
How could I make sessions directory working?

Thank you.



--
Você recebeu essa mensagem porque está inscrito em um tópico no grupo "Laravel Brasil" dos Grupos do Google.
Para cancelar inscrição nesse tópico, acesse https://groups.google.com/d/topic/laravel-brasil/6VeFloqeYVU/unsubscribe.
Para cancelar inscrição nesse grupo e todos os seus tópicos, envie um e-mail para laravel-brasil+unsubscribe@googlegroups.com.

Renan Paes Leme

unread,
Dec 10, 2016, 11:55:01 AM12/10/16
to Laravel Brasil
Did you tried this:
After update
chmod -R gu+w storage

chmod -R guo+w storage

php artisan cache:clear

hiroki yasui

unread,
Dec 10, 2016, 11:59:13 AM12/10/16
to Laravel Brasil
Yes, I did...

2016年12月10日土曜日 17時55分01秒 UTC+1 Renan Paes Leme:
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para laravel-brasi...@googlegroups.com.

Para mais opções, acesse https://groups.google.com/d/optout.

--
Você recebeu essa mensagem porque está inscrito em um tópico no grupo "Laravel Brasil" dos Grupos do Google.
Para cancelar inscrição nesse tópico, acesse https://groups.google.com/d/topic/laravel-brasil/6VeFloqeYVU/unsubscribe.
Para cancelar inscrição nesse grupo e todos os seus tópicos, envie um e-mail para laravel-brasi...@googlegroups.com.

Para mais opções, acesse https://groups.google.com/d/optout.

--
Você recebeu essa mensagem porque está inscrito no grupo "Laravel Brasil" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para laravel-brasi...@googlegroups.com.

hiroki yasui

unread,
Dec 10, 2016, 12:04:08 PM12/10/16
to Laravel Brasil

InvalidArgumentException in Finder.php line 546:The "/Users/xx/xx/xxx/storage/framework/sessions" directory does not exist.


It seems that local directory path was used on Docker container.
 



2016年12月10日土曜日 17時59分13秒 UTC+1 hiroki yasui:

Renan Paes Leme

unread,
Dec 10, 2016, 12:05:36 PM12/10/16
to Laravel Brasil
You need to create the folder Sessions inside storage/Framework folder and give 777 permissions to it.

Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para laravel-brasil+unsubscribe@googlegroups.com.

hiroki yasui

unread,
Dec 10, 2016, 12:11:49 PM12/10/16
to Laravel Brasil
Session directory exists because project directory is mounted to docker container from local.


2016年12月10日土曜日 18時05分36秒 UTC+1 Renan Paes Leme:

hiroki yasui

unread,
Dec 10, 2016, 1:11:49 PM12/10/16
to Laravel Brasil
I guess, it's my docker environmental issue.
Why php file try to open from local volume though using docker container.
[2016-12-10 17:40:11] local.ERROR: ErrorException: file_put_contents(/Users/xxx/xxx/xxx/storage/framework/sessions/TscoVrHvxGDk0MJ9J3UhhztsP37bBkBtzL0I7m7I): failed to open stream: No such file or directory in /opt/app/www/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:111
Stack trace:

2016年12月10日土曜日 18時11分49秒 UTC+1 hiroki yasui:

Renan Paes Leme

unread,
Dec 10, 2016, 1:26:56 PM12/10/16
to Laravel Brasil
Yes. I think you are mapping tô the wrong path.

Are you using laradock?

Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para laravel-brasil+unsubscribe@googlegroups.com.

hiroki yasui

unread,
Dec 10, 2016, 1:48:28 PM12/10/16
to Laravel Brasil
No, I prepared docker-compose.yml and Dockerfile and so on by myself.

2016年12月10日土曜日 19時26分56秒 UTC+1 Renan Paes Leme:

hiroki yasui

unread,
Dec 10, 2016, 2:50:13 PM12/10/16
to Laravel Brasil
Thank you Runan,
After creating laravel project from container, it worked well!!
First, I created these files on local and then this directory was mounted.

Thank you for you help again!!



2016年12月10日土曜日 19時26分56秒 UTC+1 Renan Paes Leme:
Yes. I think you are mapping tô the wrong path.

Are you using laradock?
Reply all
Reply to author
Forward
0 new messages