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

🐛 [Nextcloud] Can't use MariaDB when self hosting it #1567

Open
zagi988 opened this issue Sep 10, 2024 · 4 comments
Open

🐛 [Nextcloud] Can't use MariaDB when self hosting it #1567

zagi988 opened this issue Sep 10, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@zagi988
Copy link
Contributor

zagi988 commented Sep 10, 2024

Description

I'm trying to set a "database host" to my own MariaDB server but I can't because it is not reachable from the addon.
Is there a way to fix that?

Reproduction steps

Start the addon and try to set it up using your own MariaDB server, not the addon.

Addon Logs

--------------------------------------------------------------------------------------------------------------
Nextcloud not installed, please wait for addon startup, login Webui, install Nextcloud, then restart the addon
--------------------------------------------------------------------------------------------------------------
 
/etc/cont-init.d/02-mariadb_discovery.sh: executing
/etc/cont-init.d/99-add_packages.sh: executing
[23:50:51] INFO: Installing additional apps :
... inotify-tools
/etc/cont-init.d/99-elasticsearch.sh: executing
/etc/cont-init.d/99-ocr.sh: executing
/etc/cont-init.d/99-trusted_domains.sh: executing
 
Starting the upstream container
 
[custom-init] No custom files found, skipping...
crond: crond (busybox 1.36.1) started, log level 8
[ls.io-init] done.
[10-Sep-2024 23:50:53] NOTICE: fpm is running, pid 1125
[10-Sep-2024 23:50:53] NOTICE: ready to handle connections

Architecture

amd64

OS

No response

@zagi988 zagi988 added the bug Something isn't working label Sep 10, 2024
@alexbelgium
Copy link
Owner

Hi, you should be able to set your own ENV variables using this method : https://github.com/alexbelgium/hassio-addons/wiki/Add%E2%80%90ons-feature-:-add-env-variables

@zagi988
Copy link
Contributor Author

zagi988 commented Sep 11, 2024

Ok, but what ENV variable would I set to reach MariaDB which is reachable either over socket or over IP:port?

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Sep 17, 2024
@alexbelgium
Copy link
Owner

Sorry actually I was wrong. When you initially set-up nextcloud, there is a setup wizard. That's where you define the external mariadb values. For example, the addon does not configures automatically the addon mariadb but just provides the informations to add in this form.

@github-actions github-actions bot removed the stale Element will be closed automatically label Sep 18, 2024
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