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

Make development easier #11547

Closed
max-wittig opened this issue May 1, 2024 · 6 comments
Closed

Make development easier #11547

max-wittig opened this issue May 1, 2024 · 6 comments
Labels
wontfix Nobody will work on this.

Comments

@max-wittig
Copy link

max-wittig commented May 1, 2024

Describe the problem

While trying to setup the development environment to tackle #11467, I noticed how difficult it is to setup the environment.

I ran into my dependency problems, as we don't have a dependency manager here so a virtualenv needs to be used with a specified version of Python.

And now I'm stuck on this issue, while running weblate migrate. I have no idea why it tries to open an LDAP connection on migrate. I'm familiar with Django setups, but this is a bit different.

django.db.utils.OperationalError: connection failed: could not initiate GSSAPI security context: Unspecified GSS failure.  Minor code may provide more information: Cannot find KDC for realm "AX001.MYCOMPANY.NET"
connection to server at "127.0.0.1", port 5432 failed: FATAL:  database "weblate" does not exist

Then I thought, maybe let's just use the docker-compose setup for a simple fix and there I need to create docker-compose.override.yml.

I think this project would benefit from a zero-setup start just to develop it.

Describe the solution you would like

a zero-config setup development environment

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented May 2, 2024

Copy link

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label May 17, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
@max-wittig
Copy link
Author

Mhmm also the default ./rundev.sh fails with psql: error: connection to server at "database" (172.18.0.3), port 5432 failed: FATAL: password authentication failed for user "weblate". This is not made for use on macOS I'm guessing

@max-wittig
Copy link
Author

Any ideas?

@max-wittig
Copy link
Author

I had to manually setup the DB. Ideally the dev setup should be zero config, so we can enable the people

CREATE USER weblate;
ALTER USER weblate WITH PASSWORD 'weblate';
GRANT USAGE ON SCHEMA public TO weblate;
CREATE DATABASE weblate;
ALTER DATABASE weblate OWNER TO weblate;

@nijel
Copy link
Member

nijel commented May 24, 2024

This really should be done by the PostgreSQL container during the initial startup. You can check its logs why it didn't.

It is supposed to be zero config, and we do verify that in CI: https://github.com/WeblateOrg/weblate/blob/main/.github/workflows/rundev.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants