Results 1 to 14 of 14

Thread: The path exists and is not a symlink

  1. #1
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

    Default The path exists and is not a symlink

    Command contao:symlinks fails with the error «The path "web/files/some-folder" exists and is not a symlink». This happens on one of my contao installations (4.5.14) for reason, that I cannot figure out. I get this error message for every public folder in /files folder

  2. #2

    Default

    Delete "web/files/some-folder" and create symlink again.
    OM MANI PEME HUNG! how many has to die for freedom and dignity. Save this world

  3. #3
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

    Default

    I searched the web and the forum before posting, and this answer is always appearing. I don't get this solution.
    "/web/files/some-folder" is a real folder, because "/web/files" points to "/files". If I delete it, of course everything's fine, no folder – no problem. But I need this folder (obviously), and when it's there – there's the problem again.

  4. #4
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    "/web/files" should not point to "/files". "/web/files" should be a physical folder. Contao creates the symlinks inside of "/web/files". Delete "/web/files" and then run composer install again.

  5. #5
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

    Default

    Quote Originally Posted by Spooky View Post
    "/web/files" should not point to "/files". "/web/files" should be a physical folder. Contao creates the symlinks inside of "/web/files". Delete "/web/files" and then run composer install again.
    Well... looks like it’s not true. I just did that and Contao created symlink “files” in the /web folder, and then I got the same error messages.

  6. #6
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Please post the output of
    Code:
    ls -la
    within your Contao installation's web/ folder.

  7. #7
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

  8. #8
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    This is wrong. As already stated above web/files should be a folder not a symlink.
    Contao Community Moderator
    → Support options

  9. #9
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

    Default

    Quote Originally Posted by xchs View Post
    This is wrong. As already stated above web/files should be a folder not a symlink.
    ...and?

  10. #10
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Quote Originally Posted by vini View Post
    ...and?
    Set up a new vanilla Contao 4.6.13 installation on the same host and check if the behavior is the same there.
    Contao Community Moderator
    → Support options

  11. #11
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

    Default

    Problem solved. Apparently a .public file should not be present in the /files folder.

  12. #12
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Interesting, I did not know that works. I think that's a Contao bug. I'll test and report accordingly.

  13. #13
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

    Default

    I don’t know exactly, why the file was there. It’s highly possible that I messed that up some day. All other installations that I manage don’t have it there.

  14. #14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •