[Errno 17] File exists: '/srv/www/domain.com/current'

Had an issue with an existing Trellis vagrant box on starting it up - error 500 - and have no idea why. So decided to provision once more. Then I ran into this error:

    There was an issue creating /srv/www/domain.com/current as requested:
    [Errno 17] File exists: '/srv/www/domain.com/current'
    failed: [default] (item=domain.com) => {"failed": true, "item": "publiqly.com", "path": "/srv/www/domain.com/current/web", "state": "absent"}

And I do not see the web folder inside the current folder now which is odd… Symlink issue perhaps…?

In the error.log I get

2017/03/19 15:19:55 [error] 3060#3060: *3606 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 192.168.50.1, server: domain.dev, request: "GET /favicon.ico HTTP/2.0", host: "domain.dev", referrer: "https://domain.dev/"

Any ideas how I can solve this? Hate to destroy the box and start all over again.

vagrant reload --provision did the trick in the end for me. See Vagrant page on in it here.

2 Likes