envision

Member Since 4 Years Ago

Tampere

Contracting Full-stack Developer & UI Designer at Digimedia ENVISION

Experience Points 24,505
Experience Level 5

495 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 265
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

01 Apr
1 year ago

envision left a reply on Adding CMS Features To Laravel Spark (Voyager, Backpack?)

@haykatieben yes I have it up and running. But you should note that Voyager doesn't support Laravel 5.6 yet, so waiting for Voyager 1.1 until can upgrade to L5.6 and Spark 6.

23 Aug
1 year ago

envision left a reply on Model Factory Increment Value Faker

But I found a trick... When calling those nested iterative factory create bunches with a fixed amount, say 30 pc. You can use $autoIncrement->current() % 30 to have iteration 'reset' by each round of that hard value.

envision left a reply on Model Factory Increment Value Faker

I cannot get that generator to reset after each factory create iteration round, as I need to generate a set of users...and within each user, a set of other records...

16 Aug
2 years ago

envision left a reply on Using Mailable And Views In Lumen

It seems if you need view or email templates or sessions, then you should choose Laravel instead of Lumen.

22 Jun
2 years ago

envision left a reply on Adding Foreign Keys With Migrations

@blomdahldaniel I only skimmed this thread through but it seems he hadn't first declared those fields to be indexes... Apparently foreign key references fields that are indexed.

13 Jun
2 years ago

envision left a reply on Can't Use Any Of JQuery Plugins In VueJS 2

@hendranucleo I came by that, but it didn't work at that time. Although I tried several combinations so I might have missed one that would have worked with "mix.autoload({});"

Why/how does it work if defined with just an empty object?

envision started a new conversation Why Two Spark Vendor Src Folders?

Why does /vendor/laravel/spark and /spark folders have identical contents?

envision left a reply on Is Making Changes To Files Inside The Spark Directory OK?

I'm starting a project that uses Spark as an API, ditching all views and Vue related things...building a custom Angular Single Page App that is hosted not in the public folder but in an another host.

I would like to document Spark's controller/routes and models with L5-Swagger but for that I would need to modify the core files for adding php annotations.

Apparently that is not an option. Perhaps there is another way to define Swagger annotations on routes files perhaps...

A feature suggestion for Spark: You perhaps could make /spark folder's source files editable and updatable like so that when update is run, check which files have been modified and either leave untouched and notify after the update OR try to merge those two file versions in the git manner...

10 Jun
2 years ago

envision started a new conversation How Does Spark Sanitize Input?

I've used L4 for many years and only half a year ago went with L5. I've used to sanitizing input myself, but I can't seem to find how Spark does it's sanitations...or did I miss something?

03 Jun
2 years ago

envision left a reply on Can't Use Any Of JQuery Plugins In VueJS 2

This Mix config helped me...it is a bit different than other snippets that I've tried, that was posted as solutions to other problems:

mix.autoload({ jQuery: 'jquery', $: 'jquery', jquery: 'jquery' });

01 Jun
2 years ago

envision left a reply on Can't Use Any Of JQuery Plugins In VueJS 2

How about using a package like Chatter that include it's own JS files to template?

First I had problems that jQuery wasn't defined globally, and now that it seems resolved, Chatter's jQuery doesn't do anything... Like clicking a button that have been bound with it doesn't do anything?

31 May
2 years ago

envision left a reply on Vue, Mix And JQuery Modules When $(document).ready()

Exactly @donpuerto, did you find a solutions for this?

I'm having problem with using Chatter forum package that uses JS source files that are appended to footer from vendor folder.

Any tips would be welcome!

https://github.com/thedevdojo/chatter/issues/114

30 May
2 years ago

envision left a reply on Laravel Series With A Vue.js UI Framework (Vuetify.js Or Quasar)

Now that Weex and Vue has an official collaboration, that seems promising...not just hybrid apps, but native-compiled apps with this stack.

envision left a reply on Laravel Series With A Vue.js UI Framework (Vuetify.js Or Quasar)

Personally I don't like Material theme's Android look, it is too G :)

26 May
2 years ago

envision left a reply on Weex Series

Although Weex's documentation seems to be WIP at this point, there is definitely more to come with Vue + Weex collaboration in the future – so @JeffreyWay covering this as a series here would be much welcomed on my parts!! :)

envision left a reply on Front End Frameworks

Jeffrey Way seems to thumb up for Bulma. I'm in the process of weighting the pros and cons with Semantic UI, Bulma, and perhaps Materialize... In the past years I've used some components from Bootstrap, but mostly I've just written my custom CSS...there is no restrictions there :)

With 15+y experience custom CSS can be pretty fast. But these modern frameworks of current day seems to have matured...for example Bulma seems really slim, would fit great with VueJS as it doesn't have any JS.

17 Apr
2 years ago

envision started a new conversation Adding CMS Features To Laravel Spark (Voyager, Backpack?)

I have upcoming projects that are partly "regular CMS sites" but are going to have digital services sold while having some custom and small web application features built into it.

With Laravel Spark that will be a breeze as one can start coding the app content in itself very soon... But how about the CMS features?

A web app with a small set of marketing pages could be built custom and managed by the coder, but that is not a viable option when the site would need to be usable for non-coder managers.

So I've been looking into an option or a narrow tech stack that would have such a site with an app hosted in a single system. One could argue the pros and cons of whether to use dedicated more refined CMS system with a separate dedicated web app deployment...

So far I haven't come about any weighty argument on having two separate systems (open to hearing such)...so I've been looking into how I could get CMS features built into one Laravel deployment.

I've come about only these two options of "package-based" CMS features for Laravel:

https://backpackforlaravel.com

https://the-control-group.github.io/voyager/

Have someone wrestled with these same needs?

Have you tested these two packages, do they work with Spark?

23 Nov
2 years ago

envision left a reply on Advance Logging With Laravel And Monolog

Also in addition to @toltech answer, one can have daily log files by adding these lines to __construct method:

$this->channels['event']['path'] = 'logs/audit-' . date('Y-m-d') . '.log';
$this->channels['audit']['path'] = 'logs/audit-' . date('Y-m-d') . '.log'; 
18 Nov
2 years ago

envision left a reply on Is There A Laravel Zip And Postal Code Lookup Package?

Have you tried this? https://github.com/antonioribeiro/zipcode

It has out of box integration with Geonames who offer free account with 30,000 credits/day.

01 Aug
3 years ago

envision left a reply on Sqlsrv Driver On Linux?

Actually my associate pointed out that Microsoft does have alternative to FreeTDS driver...and I don't recall anymore why I chose to go with FreeTDS route.

Anyone has experience with this driver instead of FreeTDS on Linux?

https://msdn.microsoft.com/en-us/library/hh568451(v=sql.110).aspx

19 Feb
3 years ago

envision left a reply on Sqlsrv Driver On Linux?

@campo actually there is an ongoing problem with this setup not yet resolved. A year ago after updating CentOS packages the Eloquent database connection got broken. For some simple queries it might work but most of the time gets empty result. I suspect this to be an encoding related issue.

There is already a week's worth of work behind debugging this and it hasn't resolved, on hold at the moment. Last month I tried again, this time with the newest Laravel 4.2 system as well as an empty L 5.2 project – neither of them works. And this time it was tried on Homestead (Ubuntu) instead of CentOS.

24 Jan
3 years ago

envision left a reply on Eloquent Not Getting MS SQL Server Unicode Characters

@lbonner did you implement that function directly to Eloquent by overwriting some of this base methods, a snippet for that?

envision left a reply on Sqlsrv Driver On Linux?

@campo I'm having serious problems with setting up charset. I've checked every config many many times and tried many different variations. This problem actually occurred after some FreeTDS update in Spring 2015.

Now I'v setup local Homestead box with using remote SQL connections. Eloquent just gets blank object or gives 207 error. Though some queries for like session login.

I've read debug dump logs and everything seems to be working. Somewhere along the line, perhaps on PHP config + Eloquent region, encoding gets messed up.

03 Jan
3 years ago

envision started a new conversation Laravel Spark For An API Based (AJAX) Web Service?

A question: Will Laravel Spark be suitable as the boilerplate for an SaaS app that uses AJAX implementation?

It seems nowadays the best way to start building a new web service is to choose such architecture that the backend is used as API for the front-end application. And if you are using for example AngularJS as the front-end framework, you can then rather quickly bundle it as an mobile app by using Ionic. You would also need to have responsive web application to have the same codebase to adopt to mobile device's screen widths.

http://stackoverflow.com/questions/33807445/laravel-spark-for-an-api-based-ajax-web-service

10 Oct
3 years ago

envision left a reply on Caching Less Than 1 Minute

$forgetSeconds  = 10;
$lastRequestTs  = Cache::get("state-requested-at-for-some-$id");
if (is_integer($lastRequestTs) && time() - $lastRequestTs > $forgetSeconds)
    Cache::forget("state-requested-at-for-some-$id");
Cache::forever("state-requested-at-for-some-$id", time());

$cacheMinutes   = 1;
return $state   = Cache::remember("state-for-some-$id", $cacheMinutes, function() use ($id)
{
    // work your magic
});

envision left a reply on Caching Less Than 1 Minute

Sub-minute caching would be very help here also!

11 Sep
3 years ago

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

I got it working! The problem was in that I needed to empty ~/.ssh folder, there was some config mess up although couldn't identify it further. It might have been just that there was two different ssh keys loaded with identical paths.

Also some tip in SO was to add fowarding agent for each sshconfig item as a wildcard, but Github strongly recommends against such practice!

09 Sep
3 years ago

envision left a reply on New Pending Migration Advisor Package

How do you use this?

07 Sep
3 years ago

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

I've suspected a permission related problem but sudo homestead up doesn't help.

06 Sep
3 years ago

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

VirtualBox is showing two shared folders configured for this running VM with full access:

Folder path:   /Users/envision/__CODE
Folder name:   home_vagrant___CODE   (is it weird there are underscores?)

Folder path:   /Users/envision/.composer/vendor/laravel/homestead
Folder name:   vagrant

Here is the vagrant folder inside VM at /home/vagrant

vagrant@homestead:~$ ll
total 36
drwxr-xr-x 5 vagrant vagrant 4096 Jun 22 15:43 ./
drwxr-xr-x 3 root    root    4096 Oct 21  2014 ../
-rw-r--r-- 1 vagrant vagrant  220 Oct 21  2014 .bash_logout
-rw-r--r-- 1 vagrant vagrant 3637 Oct 21  2014 .bashrc
drwx------ 2 vagrant vagrant 4096 Oct 21  2014 .cache/
drwxrwxr-x 4 vagrant vagrant 4096 Jun 22 15:44 .composer/
-rw-r--r-- 1 vagrant vagrant  724 Jun 22 15:43 .profile
drwx------ 2 vagrant root    4096 Oct 21  2014 .ssh/
-rw-r--r-- 1 vagrant vagrant    6 Oct 21  2014 .vbox_version

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

This is driving me nuts...

Somewhere along the lines that which homestead scripts should do to VM during boot are not applied – how do I debug this??

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

Nginx logs are empty – so me trying to load http://test.dev in browser hasn't reached there. Well of course, there is no configuration files created in www folder...

vagrant@homestead:/var/log/nginx$ cat error.log
2015/06/22 15:44:39 [notice] 13524#0: signal process started
2015/06/22 15:44:57 [notice] 13627#0: signal process started
2015/06/22 15:49:45 [notice] 22000#0: signal process started
vagrant@homestead:/var/log/nginx$ cat access.log
vagrant@homestead:/var/log/nginx$ 

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

boot.log

vagrant@homestead:/var/log$ cat boot.log
 * Starting Mount filesystems on boot                                    [ OK ]
 * Stopping Track if upstart is running in a container                   [ OK ]
 * Starting Initialize or finalize resolvconf                            [ OK ]
 * Starting set console keymap                                           [ OK ]
 * Starting Signal sysvinit that virtual filesystems are mounted         [ OK ]
 * Starting Signal sysvinit that virtual filesystems are mounted         [ OK ]
 * Starting Bridge udev events into upstart                              [ OK ]
 * Starting device node and kernel event manager                         [ OK ]
 * Starting Signal sysvinit that remote filesystems are mounted          [ OK ]
 * Starting load modules from /etc/modules                               [ OK ]
 * Starting cold plug devices                                            [ OK ]
 * Starting log initial device creation                                  [ OK ]
 * Starting Signal sysvinit that the rootfs is mounted                   [ OK ]
 * Stopping set console keymap                                           [ OK ]
 * Stopping load modules from /etc/modules                               [ OK ]
 * Starting Clean /tmp directory                                         [ OK ]
 * Starting Uncomplicated firewall                                       [ OK ]
 * Starting configure network device security                            [ OK ]
 * Starting configure network device                                     [ OK ]
 * Starting configure network device security                            [ OK ]
 * Stopping Clean /tmp directory                                         [ OK ]
 * Starting Signal sysvinit that local filesystems are mounted           [ OK ]
 * Starting D-Bus system message bus                                     [ OK ]
 * Starting flush early job output to logs                               [ OK ]
 * Stopping Mount filesystems on boot                                    [ OK ]
 * Starting SystemD login management service                             [ OK ]
 * Starting configure network device security                            [ OK ]
 * Starting NFSv4 id <-> name mapper                                     [ OK ]
 * Stopping flush early job output to logs                               [ OK ]
 * Stopping rpcsec_gss daemon                                            [ OK ]
 * Starting system logging daemon                                        [ OK ]
 * Starting Mount network filesystems                                    [ OK ]
 * Starting Upstart job to start rpcbind on boot only                    [ OK ]
 * Starting Failsafe Boot Delay                                          [ OK ]
 * Stopping Upstart job to start rpcbind on boot only                    [ OK ]
 * Starting configure network device                                     [ OK ]
 * Stopping Mount network filesystems                                    [ OK ]
 * Starting RPC portmapper replacement                                   [ OK ]
 * Starting NSM status monitor                                           [ OK ]
 * Starting Bridge file events into upstart                              [ OK ]
 * Starting Bridge socket events into upstart                            [ OK ]
 * Stopping cold plug devices                                            [ OK ]
 * Stopping log initial device creation                                  [ OK ]
 * Starting configure network device security                            [ OK ]
 * Starting enable remaining boot-time encrypted block devices           [ OK ]
 * Starting configure virtual network devices                            [ OK ]
 * Starting Mount network filesystems                                    [ OK ]
 * Stopping Mount network filesystems                                    [ OK ]
 * Starting configure network device                                     [ OK ]
 * Stopping Failsafe Boot Delay                                          [ OK ]
 * Starting System V initialisation compatibility                        [ OK ]
 * Starting early crypto disks...                                        [ OK ] 
 * Starting nginx - small, powerful, scalable web/proxy server           [ OK ]
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
 * Starting AppArmor profiles                                            [ OK ] 
 * Stopping System V initialisation compatibility                        [ OK ]
 * Starting System V runlevel compatibility                              [ OK ]
 * Starting regular background program processing daemon                 [ OK ]
 * Starting save kernel messages                                         [ OK ]
 * Starting OpenSSH server                                               [ OK ]
 * Stopping save kernel messages                                         [ OK ]
 * Stopping CPU interrupts balancing daemon                              [ OK ]
 * Starting The PHP FastCGI Process Manager                              [ OK ]
 * Starting MySQL 5.6 Server                                             [ OK ]
 * Starting PostgreSQL 9.4 database server                               [ OK ] 
 * Starting in-memory queueing server beanstalkd                         [ OK ] 
The server ID parameter is not set. Please run 'blackfire-agent -register' to configure it.
usage /usr/bin/blackfire-agent [options]
  -ca-cert="": Sets the PEM encoded certicates
  -collector="https://blackfire.io": Sets the URL of Blackfire's data collector
  -config="/etc/blackfire/agent": Sets the path to the configuration file
  -d: Prints the current configuration
  -http-proxy="": Sets the http proxy to use
  -https-proxy="": Sets the https proxy to use
  -log-file="stderr": Sets the path of the log file. Use stderr to log to stderr
  -log-level="1": log verbosity level (4: debug, 3: info, 2: warning, 1: error)
  -ratio="1": Sets the pruner ratio
  -register: Helps you with registering the agent
  -server-id="": Sets the server id used to authenticate with Blackfire API
  -server-token="": Sets the server token used to authenticate with Blackfire API. It is unsafe to set this from the command line
  -socket="unix:///var/run/blackfire/agent.sock": Sets the socket the agent should read traces from. Possible value can be a unix socket or a TCP address. ie: unix:///var/run/blackfire/agent.sock or tcp://127.0.0.1:8307
  -spec="": Sets the path to the json specifications file
  -test: Tests the configuration
  -timeout="15s": Sets the Blackfire connection timeout
  -v: Prints the version number
 * Starting Blackfire Agent blackfire-agent                              [fail] 
Starting memcached: memcached.
Starting supervisor: supervisord.
Starting the VirtualBox Guest Additions ...done.
Starting VirtualBox Guest Addition service  ...done.
 * Stopping System V runlevel compatibility                              [ OK ]

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

I'm reading server's log files... This is a relevant snippet from auth log. I have removed couple of hundreds extra lines. This starts from where I have started this VM, there a huge number of rows from time before the VM was distributed.

vagrant@homestead:/var/log$ cat auth.log

Sep  6 19:19:52 homestead sshd[871]: Server listening on 0.0.0.0 port 22.
Sep  6 19:19:52 homestead sshd[871]: Server listening on :: port 22.
Sep  6 19:19:56 homestead su[1149]: Successful su for blackfire by root
Sep  6 19:19:56 homestead su[1149]: + /dev/console root:blackfire
Sep  6 19:19:56 homestead su[1149]: pam_unix(su:session): session opened for user blackfire by (uid=0)
Sep  6 19:19:56 homestead su[1149]: pam_unix(su:session): session closed for user blackfire
Sep  6 19:19:56 homestead sshd[1186]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:19:56 homestead sshd[1188]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:19:57 homestead sshd[1190]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:19:57 homestead sshd[1192]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:19:57 homestead sshd[1194]: Connection closed by 10.0.2.2 [preauth]
...
Sep  6 19:20:00 homestead sshd[1319]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:20:00 homestead sshd[1321]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:20:00 homestead sshd[1323]: Did not receive identification string from 10.0.2.2
Sep  6 19:20:00 homestead sshd[1324]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:20:01 homestead sshd[1326]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:20:02 homestead sshd[1328]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:20:02 homestead sshd[1334]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:20:02 homestead sshd[1336]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:20:03 homestead sshd[1338]: Connection closed by 10.0.2.2 [preauth]
...
Sep  6 19:21:37 homestead sshd[2500]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:21:37 homestead sshd[2502]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:21:38 homestead sshd[2504]: Connection closed by 10.0.2.2 [preauth]
Sep  6 19:30:43 homestead sshd[2515]: Accepted password for vagrant from 10.0.2.2 port 62283 ssh2
Sep  6 19:30:43 homestead sshd[2515]: pam_unix(sshd:session): session opened for user vagrant by (uid=0)
Sep  6 19:39:01 homestead CRON[2576]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep  6 19:39:01 homestead CRON[2576]: pam_unix(cron:session): session closed for user root
Sep  6 19:42:04 homestead sudo:  vagrant : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/bin/cat php5-fpm.log
Sep  6 19:42:04 homestead sudo: pam_unix(sudo:session): session opened for user root by vagrant(uid=0)
Sep  6 19:42:04 homestead sudo: pam_unix(sudo:session): session closed for user root

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

Here is the file list from www folder inside VM after I had ssh'd in with password:

vagrant@homestead:/var/www/html$ ll
total 12
drwxr-xr-x 2 root root 4096 Jun 22 15:44 ./
drwxr-xr-x 3 root root 4096 Jun 22 15:44 ../
-rw-r--r-- 1 root root  867 Jun 22 15:44 index.nginx-debian.html

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

This shows that the domain test.dev is routed correctly to that IP address (which is the default one that was set with Homestead):

traceroute test.dev
traceroute to test.dev (192.168.10.10), 64 hops max, 52 byte packets
 1  * * *
 2  * *traceroute: sendto: No route to host
traceroute: wrote test.dev 52 chars, ret=-1
 *
traceroute: sendto: Host is down
 3 traceroute: wrote test.dev 52 chars, ret=-1
 *traceroute: sendto: Host is down

So I suspect that those Nginx configurations are not copied to VM either.

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

I did now, overwrote the previously created with default name and this time without password. Didn't help.

I just realized those Nginx mapped folders are not working either even though I should have it mapped correctly. Just in case I have turned off my VPN connection and the firewall.

which homestead
/Users/envision/.composer/vendor/bin/homestead

cat  /Users/envision/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCig3Fg5Cuy1JAMPQYK6Cvsr8MeEEuzCHwgM+uPhNw6QdEjDBkAy0WyDIF+svecplvCt9AHsWVnUCYQakqs8lGTRf+eCMthHVvP4dgtB6qVqTpIAaeNWhztM3fk6EBCTYrXQYYtablmTdnIz/dcbrcPofspww+Jg5QrnZrBpftPI+3mGnU8mpZP22xBOJJ7vaKfviQNlrcluvHdunI9vqYyVBBY/CGY/VnrhwWwdTtY3CiMuIq3V0m67GoDcKa0+0lXO7wO1iQYyvZAaGzPUVQ8OmnRO3XNCV6HXFkQH9zBpwGI1z3PpZd9cE7Uj2z92U5iXKQDvwB3DzS0ZL6aw78F you@homestead

cat /Users/envision/.ssh/id_rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAooNxYOQrstSQDD0GCugr7K/DHhBLswh8IDPrj4TcOkHRIwwZ
AMtFsgyBfrL3nKZbwrfQB7FlZ1AmEGpKrPJRk0X/ngjLYR1bz+HYLQeqlak6SAGn
jVoc7TN35OhAQk2K10GGLWm5Zk3ZyM/3XG63D6H7KcMPiYOUK52awaX7TyPt5hp1
PJqWT9tsQTiSe72in74kDZa3Jbrx3bpyPb6mMlQQWPwhmP1Z64cFsHU7WNwojLiK
t1dJuuxqA3CmtPtJVzu8DtYkGMr2QGhsz1FUPDpp0Tt1zQleh1xZEB/cwacBiNc9
z6WXfXBO1I9s/dlOYlykA78Adw80tGS+msO/BQIDAQABAoIBAEQq4ooD65iNtQaN
KlW04Yfcifm4WCh27KoNXUfMMRx2syUCVBKTMV7oBAGDTH33AhKBS8+OR7y4T98e
1sgItNMTz48YnUbVK8fdMfJhftpcK8g8eW2/WNbeefIYwauOHyj/oSq3aD9TdIDZ
SycIgd0a0uHHomLKQIKzD1EfMHUXL8W4LcHDJzueKRJf0BqV3oC6O+5Qc8uUdBJj
wZ5K66kIPUIYnkNGZOeKziYiuvn71eyjg1NjmWjTuptkU7hpdJdkUG2Tgj58KnK1
2Cwx1civ5dNkRzUIZPwuOOTE42wBTIKyqCSZCtqrXv2hZllH0yCJd3yOhEeEVSVe
ucfDFVkCgYEA1lQDX3ebARAzHjnoC20IAqDL/NqYrxZnyrEQ3oE3W1klnygxYKVi
3pPYcIRjeW03vB/3H0KCHdpw1R864BbGy8zBZ+FxrFitodJBmYpbAEtgUUpvGB13
j0PCNPJJXBnfWomV8tSvm+CI6+6qeT9yB1Zm81LLw4RIjmQ/x4fsuccCgYEAwhxm
SIEjobOaeomIMW9RPrZSAnc2QlsNM3DBwJD1rtPbCXJMED0vPNZ2+LH0ur5DqvHC
90i9I0Sn4IRWtomrXTf/hH3QysyW56I+MP1i7iHIXC3TcBf8GiGLYU8VlWBrxUgD
ClvRduTn5HGiPNvnW4fieBI1ql6gnIAfm+skYNMCgYBn6j3kaJonrtIKAqtl9swe
chXVF6tVoLhcBvOV3fKYAKYD/7nJEQbZwbb7/sQ4GGMgfCMV7eomTUXNnyGtin2C
TFktY5n4pNoyjj2uEu3CO8mMQFmSyJ6yQHkFsL8uv4CSZgjkvogSPJBGS+YteTxx
IEw0B12yAw4ms6ZUuKtm+wKBgEK088mS56XYTQwzW2Rxtt/wU/qY8UKYe87jvxHo
PyYXlDyI1O73t9YWdcg9j7blT+fdMX09uBH4tCCKGiqc4REl/1+OxUQMTwfHT8wS
J/9iCLL05Kau92obgQSt4uL0wdSITNMwfql3POHa00BK6hUge4l76Ill/5gIx9QT
WOsVAoGAZG2fuqA/JRfO/rSfEe4jIAdkwm1JOrw8l+YFwuiZncd9rx33EpnCl4TC
kzp99aq+/6ynIeHRjlbUuZBXBGG4h7/LA5ATtM50zzcGHAz03sO7uD5ETlapthR1
I9HHeHsqesS/o6UbjvMaTVxyFf7HqrzOLfO0A+6c2wW0+RR5+9g=
-----END RSA PRIVATE KEY-----

cat ~/.homestead/Homestead.yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: /Users/envision/.ssh/id_rsa.pub

keys:
    - /Users/envision/.ssh/id_rsa

folders:
    - map: /Users/envision/__CODE
      to: /home/vagrant/__CODE

sites:
    - map: test.dev
      to: /home/vagrant/__CODE/test/public

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 93000
#       to: 9300
#     - send: 7777
#       to: 777
#       protocol: udp

And in hosts file (and flushed):

192.168.10.10       test.dev

envision left a reply on Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

Sorry, OS X Yosemite – earlier when I was experiencing this issue 9 months ago I had OS X Mavericks.

envision started a new conversation Homestead / Vagrant Not Copying SSH Key To VM Authorized_keys

About 9 months ago when I was learning Vagrant (and haven't used since) I couldn't solve this very same problem. Now it is happening with homestead:

homestead up is giving repeated errors "default: Warning: Authentication failure. Retrying..." until timeout. I can see in VirtualBox UI's preview screen that the VM's command line is up and running after a couple of those error messages.

I have uninstalled and reinstalled VirtualBox and upgraded Vagrant to the newest version 1.7.4. So far I have tried pretty much every tip I have come about and wasted at 2-3 days trying to solve this when counting the time used 9 months ago.

However I can 'ssh vagrant@127.0.0.1 -p 2222' and with password 'vagrant'.

Then 'cat /home/vagrant/.ssh' is showing that there is only vagrant insecure public key appended there. So even I have regenerated my ssh key with Github's guide, cleared all related lines in known_hosts file, have correct paths in Homestead.yaml (also expanded to absolute paths as it was reported that Zsh shell might not do proper expanding in every case), cleared all irrelevant entries in /etc/hosts and dscacheutil -flushcache afterwards... Still my SSH key is not copied to the VM.

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: /Users/envision/.ssh/id_rsa.pub

keys:
    - /Users/envision/.ssh/id_rsa

folders:
    - map: /Users/envision/__CODE/homestead
      to: /home/vagrant/__CODE
homestead up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: homestead
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 => 8000 (adapter 1)
    default: 443 => 44300 (adapter 1)
    default: 3306 => 33060 (adapter 1)
    default: 5432 => 54320 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
     default: Warning: Connection timeout. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
homestead ssh-config
Host default
  HostName 127.0.0.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /Users/envision/.vagrant.d/insecure_private_key
  IdentitiesOnly yes
  LogLevel FATAL

envision left a reply on Fortgot Vagrant Password

About 9 months ago when I was learning Vagrant (and haven't used since) I couldn't solve this very same problem. Now it is happening with homestead:

homestead up is giving repeated errors "default: Warning: Authentication failure. Retrying..." until timeout.

I have uninstalled and reinstalled VirtualBox, and tried pretty much every tip I have come about and waste at least 2 days trying to solve this.

However I can 'ssh vagrant@127.0.0.1 -p 2222' and with password 'vagrant'.

Then 'cat /home/vagrant/.ssh' is showing that there is only vagrant insecure public key appended there. So even I have regenerated my ssh key with Github's guide, cleared all related lines in known_hosts file, have correct paths in Homestead.yaml (also expanded to absolute paths as it was reported that Zsh shell might not do proper expanding in every case), cleared all irrelevant entires in /etc/hosts and dscacheutil -flushcache afterwards... Still my SSH key is not copied to the VM.