GithubHelp home page GithubHelp logo

500 after trying to login about solectrus HOT 3 CLOSED

flymann avatar flymann commented on June 26, 2024
500 after trying to login

from solectrus.

Comments (3)

ledermann avatar ledermann commented on June 26, 2024

Strange. Can you post more of the logs, please? It looks like the error message is in the lines below your extract.

Two general hints:

  • Try to use a simple password without #, $ etc. Or use quotes in the .env file, like ADMIN_PASSWORD='s3cr#t$'
  • A change in the .env file requires the container to be restarted

from solectrus.

flymann avatar flymann commented on June 26, 2024

Sorry for the delay, please find below some more logs ...

I, [2023-09-10T11:58:38.958411 #53] INFO -- : [192.168.178.24] method=POST path=/login format=turbo_stream controller=SessionsController action=create status=500 allocations=574 duration=1.92 view=0.00 db=0.00 user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 F, [2023-09-10T11:58:38.959581 #53] FATAL -- : [192.168.178.24] [192.168.178.24] ActionController::Redirecting::UnsafeRedirectError (Unsafe redirect to "http://100.98.245.70/inverter_power/2023-09-08", pass allow_other_host: true to redirect anyway.): [192.168.178.24] [192.168.178.24] app/controllers/sessions_controller.rb:13:in create'
[192.168.178.24] app/controllers/concerns/auto_locale.rb:14:in switch_locale' I, [2023-09-10T11:58:38.983907 #53] INFO -- : [192.168.178.24] method=GET path=/500 format=turbo_stream controller=ErrorsController action=show status=500 allocations=6736 duration=23.34 view=22.84 db=0.00 user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

from solectrus.

ledermann avatar ledermann commented on June 26, 2024

It seems there is an IP confusion. I can see two IP private addresses in your logs:

  • 192.168.178.24
  • 100.98.245.70

Can you identify them? Please ensure your .env includes the following line (insert the IP address you use in the browser to reach the device running SOLECTRUS):

# Domain name or IP address of your host
APP_HOST=192.168.178.24

Don't forget to restart the container after editing the .env file.

from solectrus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.