Skip to content
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

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

Open
3 tasks done
kelvinks opened this issue Feb 16, 2025 · 7 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.

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

5 participants