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

error: exec: "./script/start.sh": stat ./script/start.sh: no such file or directory #32

Closed
grisuthedragon opened this issue Jun 15, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@grisuthedragon
Copy link
Contributor

After fixing the "Hinkskalle.uitl" python error I now get:

api_1           | error: exec: "./script/start.sh": stat ./script/start.sh: no such file or directory

I use the plain docker-compose.yml from share/deploy and commented out all LDAP related stuff from the environment files. I set the system up by:

docker-compose up -d hinkdb
docker-compose run --rm api flask db upgrade
docker-compose run --rm api flask localdb add-user   -u admin   -p admin   -e admin@testha.se   -f Admin -l Hase   --admin
docker-compose up 
@h3kker
Copy link
Member

h3kker commented Jun 15, 2022

Oops, the start script expected to be started in a particular directory. I made the whole thing more robust. You will need to pull the fresh docker image (docker-compose pull api).

@h3kker h3kker self-assigned this Jun 15, 2022
@h3kker h3kker added the bug Something isn't working label Jun 15, 2022
@h3kker
Copy link
Member

h3kker commented Jun 15, 2022

fixed in c33322b

@grisuthedragon
Copy link
Contributor Author

This works now. But the login is not possible. Neither the created admin user nor the standard user can login. Both return a 401.

@h3kker
Copy link
Member

h3kker commented Jun 15, 2022

Ah, you have to change HINKSKALLE_BACKEND_URL, if you use the share/deploy stuff it's in conf/hinkskalle.env.

for disabling LDAP HINKSKALLE_LDAP_BIND_PASSWORD should also be commented out.

I've pushed e25a5dc with localhost as backend url and ldap disabled in the example deployment, I think this might be a more common use case for trying it out.

documentation also updated: https://testha.se/projects/hinkskalle/deployment/#backend-url

@grisuthedragon
Copy link
Contributor Author

Now everything works as expected. Thanks :-)

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

No branches or pull requests

2 participants