Skip to content

[Bug]: after install Docker, I can't login(what is default admin user? pw?) #1578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
kelvinks opened this issue Feb 16, 2025 · 14 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working up-for-grabs

Comments

@kelvinks
Copy link

Issue Description

Thank you for creating the OpenSign program.

I successfully installed and ran it using Docker, but I encountered an issue.

According to the YouTube video, after installation, the first time you access the browser, a page to create an administrator should appear. However, I was taken directly to the login page instead. So, I sawed the video and accessed the /addadmin URL, but it said that an administrator had already been created.

If the default administrator is created during the installation process, I think this should be clearly communicated.

Expected Behavior

No response

Current Behavior

No response

Steps to reproduce

No response

Screenshots of the issue(optional)

No response

Operating System [e.g. MacOS Sonoma 14.1, Windows 11]

Linux System (Synology Nas)

What browsers are you seeing the problem on?

Chrome

What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6]

latest docker image

What environment are you seeing the problem on?

No response

Please check the boxes that apply to this issue report.

  • I have searched the existing issues & discussions to make sure that this is not a duplicate.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I have searched the existing issues & discussions to make sure that this is not a duplicate.
@GrzegorzKwasniewski7
Copy link

GrzegorzKwasniewski7 commented Feb 16, 2025

@kelvinks I had exactly same issue. I tried to run it in Docker and got redirected to login page. However I downloaded repo and run: npm run build - that started the app with /addadmin. I got MongoDB configured on Docker and I run locally OpenSign server on: 8080. (you need to configure .env as well)

@cs35-owncloud
Copy link

Hello everyone,
same here, I tried looking in the mongo database but couldn't find anything useful yet.

@cs35-owncloud
Copy link

Btw I tried this: #1237
But the URL /signup is always a 404.

@andrew-opensignlabs
Copy link
Collaborator

/signup route is not available on self-hosted version. You can only add users from admin login.

How many users do you see in your _Users class? Ideally there should be no users if you are expecting a redirect to "/addadmin" because that happens only for fresh installations that dont have any user.

@cs35-owncloud
Copy link

cs35-owncloud commented Feb 18, 2025

Hello, thanks for your answer, I might be wrong checking this way, feel free to point me to the right way

test> use OpenSignDB
switched to db OpenSignDB
OpenSignDB> show collections
_Idempotency
_Role
_SCHEMA
_User
Migration
OpenSignDB> db.getCollection('_User').find({}).pretty()

It seems there is no one.

P.S: and the /addadmin says there is already an admin, but I have none since it's a fresh install

@indra-yana
Copy link

indra-yana commented Feb 18, 2025

Same issue! currently I fresh install OpenSign on my linux ubuntu machine and if I open in chromium browser like opera, chrome, edge the home page says: "Unable to connect to the OpenSign server. bla bla blaaa" but if I open in Firefox the page is shown but not redirect me to /addadmin page. I was change any port, any base url, keep it by default and more, but nothing works! only waste my day.

very strange behavior.

@cs35-owncloud
Copy link

Hello everyone,

I had it running, in my case, I had set a specific string for REACT_APP_APPID / APP_ID. By reading the doc "A 12 character long random app identifier. The value of this should be same as REACT_APP_APPID which is a variable used by Frontend React App." I assumed one had to change it, but once I set it back to opensign it worked ...
You also have to wait a looooong time for the server to start up (around 2 minutes), wait to see this:

opensign-server running on port 8080.
Command output: 
Parse DBTool v1.2.0 - Parse server tool for data migration and seeding.

Run migration on parse-server at http://localhost:8080/app

 INFO  No migrations were executed, database schema was already up to date.

 SUCCESS  Successfully run migrations.


 INFO  No migrations were executed, database schema was already up to date.
 SUCCESS  Successfully ran indexed migrations directly on db.

@nfodor
Copy link

nfodor commented Feb 28, 2025

Same issue, no way to make it work, using our own database url that works with other nodejs app and no error logged with docker compose logs -f.
Lost about an hour so far, will now look for alternatives since i need to post an NDA tonight.

@maneeshsethi
Copy link

Same issue for me, both attempting an install on a headless server with a domain, and an attempt selfhosted on ubuntu.

It actually did open the correct /addadmin url the first time I attempted on Mac local install. But I turned off the docker container and restarted it, and it failed again.

@emorgan33
Copy link

I also have this issue. Fresh install self-hosted Docker is asking for email/password.

I ran it using this command: export HOST_URL=https://opensign.yourdomain.com && curl --remote-name-all https://raw.githubusercontent.com/OpenSignLabs/OpenSign/main/docker-compose.yml https://raw.githubusercontent.com/OpenSignLabs/OpenSign/main/Caddyfile https://raw.githubusercontent.com/OpenSignLabs/OpenSign/main/.env.local_dev && mv .env.local_dev .env.prod && docker compose up --force-recreate

@KnightBoemund
Copy link

Same issue here.
The problem was the mongodb container. The logs said:

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
  see https://jira.mongodb.org/browse/SERVER-54407
  see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
  see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814

I use docker on a vm in a proxmox cluster. Here you need to change the cpu type to host.
In a VMware environment it works too. But before you need to enable the proper option in the CPU Feature Set:
Advanced Vector Extensions (AVX) cpuid.AVX Val:1

@nfodor
Copy link

nfodor commented Mar 12, 2025 via email

@viegelinsch
Copy link

The solution is in #1002 (comment)

On first usage you need to go to https://localhost:3001 and create a new login.
That creates an admin user.

@nfodor
Copy link

nfodor commented Mar 31, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working up-for-grabs
Projects
None yet
Development

No branches or pull requests

10 participants