Results 1 to 14 of 14

Thread: The path exists and is not a symlink

  1. #1
    New user
    Join Date
    11-16-11.
    Location
    Berlin
    Posts
    25

    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
    New user
    Join Date
    11-16-11.
    Location
    Berlin
    Posts
    25

    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
    331

    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
    New user
    Join Date
    11-16-11.
    Location
    Berlin
    Posts
    25

    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
    331

    Default

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

  7. #7
    New user
    Join Date
    11-16-11.
    Location
    Berlin
    Posts
    25

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

    Default

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

  9. #9
    New user
    Join Date
    11-16-11.
    Location
    Berlin
    Posts
    25

    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-19-09.
    Posts
    1,098

    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
    New user
    Join Date
    11-16-11.
    Location
    Berlin
    Posts
    25

    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
    331

    Default

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

  13. #13
    New user
    Join Date
    11-16-11.
    Location
    Berlin
    Posts
    25

    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
  •