Skip to content

Links are all taking me to a 500 error #50

Description

@chrisjameschamp

I am guessing something is not setup correctly.

But when I click on a link it takes me to url.com/going/10?facebookurl

But I get a 500 Server Error

or more specifically in the logs...

HTTP/1.1" 500 6615

Activity

  1. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    On docker?

  2. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    Behind a reverse proxy or does this also happen when accessing directly over the ip and port?

  3. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Yes it is running on docker, that's a good question let me see if it does it from IP:Port

  4. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Same results if going IP:Port

  5. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    Could you please turn on debugging in your config and try again?

  6. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Now it wont let me login, I guess I have to restore from backup again, trying to make this persistent is becoming a real pain

  7. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Is there a way to restore from backup?

  8. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    Is there a way to restore from backup?

    Not really besides exctarcting the backup file inside the / (root) directory.

  9. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Problem is with Unraid, I do not have easy access to the root directory of a container. Ultimately I dont think Little Link Custom is going to work on Unraid, since there is no way to do persistent storage, I tried but apparently something goes wrong when it unraid backs up appdata.

  10. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    Can you run docker commands from the Unraid shell?

    Something like docker pull julianprieber/littlelink-custom

  11. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    I believe so

  12. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    You can try to run docker pull julianprieber/littlelink-custom this wont break anything so if this works I could help you setting up your docker image with persitent storage.

  13. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Yes that works fine, no issues

  14. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    Alright, what port(s) would you like your docker to run on?

  15. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    HTTP Port 2880
    HTTPS Port 28443

  16. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    Please run the commands:

    docker volume create llc-unraid

    and

    docker run --detach --name littlelink-custom-unraid --publish 2880:80 --publish 28443:443 --restart unless-stopped --mount source=llc-unraid,target=/htdocs julianprieber/littlelink-custom

    Then your docker should be up and running without any issues.

  17. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Where does it make the llc-unraid volume, is it in the docker img?

  18. JulianPrieber commented on Mar 7, 2023

    @JulianPrieber
    Member

    Its in one of your folders on your system. Everything inside that folder will persist even if you delete the docker container.

  19. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Ok so according to the folks at unraid this will not work in unraid, because of the way shares are setup. But they told me to do essentially what I did last night, which was create both the appdata folder, and the docker container without mapping anything. Then copy the files from htdocs, to the appdata folder, rebuild mapping it in such a way.

    However for whatever reason, overnight it created all the issues I now have with 404 and 500 errors galore.

    They also recommended what would help on unraid, and apparently some other docker solutions; is to put the data that cannot be changed by the issue, maybe it's setup files, or whatever in htdocs, but all of the user data, the database, images, config files, in another folder. For your normal installations it's just a seperate folder alongside htdocs, but allow in the setup for that folder to be mapped elsewhere, and then unraid users could map it to their appdata folder, and everything would work great. If something were to happen to the container itself, they could simply reinstall and point that folder back to appdata and everything would be restored right away.

    For now I am going to run it as non persistent and see if I run into any issues that way. Fingers crossed

  20. chrisjameschamp commented on Mar 7, 2023

    @chrisjameschamp
    Author

    Also trying to restore files from the backup.zip file causes a 500 error as well

  21. locked and limited conversation to collaborators on May 5, 2023
  22. converted this issue into a discussion #57 on May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions