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

v2.3.13 #14

Merged
merged 5 commits into from
Oct 4, 2022
Merged

v2.3.13 #14

merged 5 commits into from
Oct 4, 2022

Conversation

islandbitcoin
Copy link

Migration to PostgreSQL DB and version bump

@BitcoinMechanic
Copy link

This fixed an issue for a user I had with database errors as expected.

image.tar: Dockerfile docker_entrypoint.sh health-check.sh example.env
docker buildx build --tag start9/$(PKG_ID)/main:$(PKG_VERSION) --platform=linux/arm64 -o type=docker,dest=image.tar .

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove DOCKER_CLI_EXPERIMENTAL=enabled? Is this no longer needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove DOCKER_CLI_EXPERIMENTAL=enabled? Is this no longer needed?

updated to use the new Makefile format from hello-world example.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...I assume the new hello-world was tested and works, and doesn't require this flag anymore?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems that way

# export OLD_PASSWORD=$(su - postgres -c 'psql -d '$POSTGRES_DB' -c "select password from users limit 1"')
# sed -i "s/$POSTGRES_PASSWORD/$OLD_PASSWORD/" /media/start9/stats.yaml
# export POSTGRES_PASSWORD=$OLD_PASSWORD
# fi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this comment block for? Are we migrating old data somewhere else?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we pull metadata from filebrowser on first run

@@ -35,10 +39,13 @@ migrations:
entrypoint: migration-from-lt-2-3-9.sh
args: []
io-format: json
inject: true
inject: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was throwing an error. I'm assuming this is because of the OS updates

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test? I seriously doubt this was the correct solution

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot test it because there is not a version earlier than 2.3.9 on the marketplace

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That means that that migration is for people updating from 0.2.x. We'll have to test that so users can migrate from 0.2.x.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this is ok actually. It looks like mounts were added even though inject was true, which actually errors out in docker. I'm surprised this migration ever worked at all: dc79457

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have since started catching this misconfiguration: Start9Labs/start-os#1653

@BitcoinMechanic
Copy link

I should add - the password for PV got changed during this upgrade - that's probably not intentional.

@islandbitcoin
Copy link
Author

I should add - the password for PV got changed during this upgrade - that's probably not intentional.

this is very intentional. the old password formats do not migrate properly.

@islandbitcoin
Copy link
Author

Beta testing is well underway, I think this code is ready to be merged? @chrisguida

@islandbitcoin islandbitcoin merged commit c8e2b31 into master Oct 4, 2022
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

Successfully merging this pull request may close these issues.

3 participants