OpenSlides: Initial logon with superadmin / superadmin not working

Hi there, I wanted to try out OpenSlides and somehow embarrassingly get stuck with the superadmin user account.

OpenSlides is running behind Nginx, Letsencrypt certificate and I can get to the site just fine. By the way, super easy setup, didn’t take more than 10 minutes.

However, when trying to logon with superadmin / superadmin as per the documentation I get a wrong password error? I did look around and found what might be password file for this user:

  cat ./secrets/superadmin          
  superadmin% 

Looks ok to me? Anyone got an idea what might be going on?

System information

  • OpenSlides-Version: Don’t really know, whatever ‘wget github.com/…releases/download/latest/openslides’ delivers today
  • docker-compose version 1.29.2, build unknown
  • OS: Ubuntu 22.04.1 LTS x86_64
  • Browser: Tried Firefox, Chromium, Safari

image

By the way, you got a typo in your documentation: image

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

I could imagine this basic ngnix configuration doesn’t allow HTTP2 connections to be made. The autoupdate service which feeds the data into the client after login needs to be able to establish a HTTP2 connection

I replaced my listenstatement with this:

   listen 443 ssl http2;
   listen [::]:443 ssl http2;

restartet both nginx and the docker containers (just in case) and…drum roll…I’m in.

Aha, getting there 😃

sudo ./openslides initial-data --no-ssl        
Initial data were set successfully.


senak at senak in /opt/docker/openslides
$ ./openslides get user --no-ssl
{"1":{"id":1,"password":"47b1752e3c31d78c12cb5b7534f6338d3c935aba27c5b82c3625c01146a53fb64jVSJtTkcWEnT+Qof8jDzPOnYg/mk+/qMDHcH7N8RLIhi5FF2nK2ZS58zDXytKqcOnjDFRjWJOTpZzL+GxS+9A==","username":"superadmin","is_active":true,"last_name":"Administrator","meta_deleted":false,"meta_position":2,"organization_id":1,"is_physical_person":true,"default_vote_weight":"1.000000","can_change_own_password":true,"organization_management_level":"superadmin"}}

Both commands completed successfully, and now I am stuck where @InterFelix is stuck. The credentials were accepted by the look of it but it doesn’t move beyond the logon screen, stuck with a spinning wheel:

image

Proxy_1 is giving these errors:

proxy_1             | {"level":"error","ts":1673712125.6814332,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"context canceled"}
proxy_1             | {"level":"error","ts":1673712125.681442,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"context canceled"}
proxy_1             | {"level":"error","ts":1673712131.2804544,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"context canceled"}

Is there maybe something particular which needs to be in the nginx config file? Right now mine is very basic:

server {
    server_name openslides.my-domain.de;

        location / {
            proxy_pass http://localhost:8000;
            proxy_set_header   Host               $host:$server_port;
            proxy_set_header   X-Real-IP          $remote_addr;
            proxy_set_header   X-Forwarded-For    $proxy_add_x_forwarded_for;
            proxy_set_header   X-Forwarded-Proto  $scheme;
            proxy_set_header   Upgrade            $http_upgrade;
            proxy_set_header   Connection         "upgrade";
        }
    listen 443 ssl; # managed by Certbot
    …

Thanks guys for getting back so quickly.

Both commands led to: Error: connecting to gRPC server: creating gRPC client connection with grpc.DialContext(): context deadline exceeded

And I realize I may have forgotten to do the data initialization the first time round

So what I now did was the following:

  1. removed the old images, sudo docker-compose down --rmi all

  2. Pulled the images again via sudo docker-compose pull && sudo docker-compose up

  3. Let things settle down before pulling the log log.txt

  4. Tried to initialize the db again sudo ./openslides initial-data Error: connecting to gRPC server: creating gRPC client connection with grpc.DialContext(): context deadline exceeded