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

Upgrade Bash script #94

Open
zuka1337 opened this issue May 12, 2021 · 3 comments
Open

Upgrade Bash script #94

zuka1337 opened this issue May 12, 2021 · 3 comments

Comments

@zuka1337
Copy link
Contributor

We have to take a look into this script, some weird things after testing that.

Page does not load properly, and stuff

I'll take a look

@zuka1337
Copy link
Contributor Author

image

@kevburkett
Copy link

I also ran into this issue while upgrading. It appears that the /upgrade.sh script is missing the config update to $url_path in /cacti/include/config.php.

Current cacti settings in /upgrade.sh

    # cacti settings
    echo "$(date +%F_%R) [Upgrade] Updating cacti settings."
    sed -i -e "s/%DB_HOST%/${DB_HOST}/" \
        -e "s/%DB_PORT%/${DB_PORT}/" \
        -e "s/%DB_NAME%/${DB_NAME}/" \
        -e "s/%DB_USER%/${DB_USER}/" \
        -e "s/%DB_PASS%/${DB_PASS}/" \
        -e "s/%DB_PORT%/${DB_PORT}/" \
        -e "s/%RDB_HOST%/${RDB_HOST}/" \
        -e "s/%RDB_PORT%/${RDB_PORT}/" \
        -e "s/%RDB_NAME%/${RDB_NAME}/" \
        -e "s/%RDB_USER%/${RDB_USER}/" \
        -e "s/%RDB_PASS%/${RDB_PASS}/" \
        /cacti/include/config.php

The /upgrade.sh script should be updated to include the update to $url_path config.
Updated Example:

    # cacti settings
    echo "$(date +%F_%R) [Upgrade] Updating cacti settings."
    sed -i -e "s/%DB_HOST%/${DB_HOST}/" \
        -e "s/%DB_PORT%/${DB_PORT}/" \
        -e "s/%DB_NAME%/${DB_NAME}/" \
        -e "s/%DB_USER%/${DB_USER}/" \
        -e "s/%DB_PASS%/${DB_PASS}/" \
        -e "s/%DB_PORT%/${DB_PORT}/" \
        -e "s/%RDB_HOST%/${RDB_HOST}/" \
        -e "s/%RDB_PORT%/${RDB_PORT}/" \
        -e "s/%RDB_NAME%/${RDB_NAME}/" \
        -e "s/%RDB_USER%/${RDB_USER}/" \
        -e "s/%RDB_PASS%/${RDB_PASS}/" \
        -e "s/%CACTI_URL_PATH%/${CACTI_URL_PATH}/" \
        /cacti/include/config.php

Tenderness-Miao added a commit to Tenderness-Miao/docker-cacti that referenced this issue Jul 20, 2021
@solarsparq
Copy link

This worked for me -- I ran into the awkward/broken login page after upgrade.sh as well. Thank you to all the contributors of this container. This makes Cacti incredibly easy to deploy, maintain & upgrade. This may be slightly unrelated, and I can open up a separate issue.. But is there an upgrade process for RRDTool? I tried to install newer versions (1.7.2 & 1.8.0) using a persistent volume & was greeted by GLIBC dependency problems.

[root@morrowind bin]# rrdtool --version
rrdtool: /lib64/libc.so.6: version GLIBC_2.34 not found (required by rrdtool)
rrdtool: /lib64/libc.so.6: version GLIBC_2.33 not found (required by rrdtool)
[root@morrowind bin]#

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

No branches or pull requests

3 participants