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

Import legacy on casaOS #2039

Open
Acwildweb opened this issue Oct 24, 2024 · 6 comments
Open

Import legacy on casaOS #2039

Acwildweb opened this issue Oct 24, 2024 · 6 comments
Labels
alpha Issues in Alpha Testing bug Something isn't working

Comments

@Acwildweb
Copy link

What happened?

I installed casaos on a machine where docker container was already present with some containers. By turning on the casaos panel I see all the containers previously installed at the bottom. If I click on them nothing happens other than a speech bubble appears saying import to casaos. I read several discussions where it was recommended to update to the latest version and in that case I should have seen three vertical dots next to each icon where I could make some choices and then import them into casaos. but in this version which is the last nothing happens. Can you help me solve it. Thank you

Screenshots

Screenshot

@Acwildweb Acwildweb added alpha Issues in Alpha Testing bug Something isn't working labels Oct 24, 2024
@Acwildweb Acwildweb changed the title [Alpha][Bug] Import legacy on casaos Oct 24, 2024
@Acwildweb Acwildweb changed the title Import legacy on casaos Import legacy on casaOS Oct 24, 2024
@Gendmyb
Copy link

Gendmyb commented Oct 25, 2024

i found it,the app will be add after you click the docker app which have not be build.it will take a long time and the docker app will display no run even though it's running and status healthy!

@Acwildweb
Copy link
Author

sorry but I didn't understand well! should I just click on one of the icons under legacy applications and wait? Because if I understood what you were saying correctly. It doesn't seem to work and everything remains as before.

@Gendmyb
Copy link

Gendmyb commented Oct 25, 2024

sorry but I didn't understand well! should I just click on one of the icons under legacy applications and wait? Because if I understood what you were saying correctly. It doesn't seem to work and everything remains as before.

yes bro,I mean, there's an app that I haven't built yet, and I hover my mouse over the icon, and there's nothing else I can do to make a choice, just like the problem you described. Then I tried clicking on the icon, and there was no obvious response. When I went back in after a period of time, the application was already built and didn't exist in the unbuilt column. However, when I first tried to see if the newly built application was useful, I found that the icon didn't work properly: its parameters, such as the environment configuration, were correct, it's the same as the Docker compose file I wrote by hand, but when I hit start, the icon is always grayed out instead of lit up, but when I see it running in docker ps on the command line interface, the docker app, however, was successfully launched.

@Acwildweb
Copy link
Author

sorry but I didn't understand well! should I just click on one of the icons under legacy applications and wait? Because if I understood what you were saying correctly. It doesn't seem to work and everything remains as before.

yes bro,I mean, there's an app that I haven't built yet, and I hover my mouse over the icon, and there's nothing else I can do to make a choice, just like the problem you described. Then I tried clicking on the icon, and there was no obvious response. When I went back in after a period of time, the application was already built and didn't exist in the unbuilt column. However, when I first tried to see if the newly built application was useful, I found that the icon didn't work properly: its parameters, such as the environment configuration, were correct, it's the same as the Docker compose file I wrote by hand, but when I hit start, the icon is always grayed out instead of lit up, but when I see it running in docker ps on the command line interface, the docker app, however, was successfully launched.

Ah ok now it's clearer to me. I thought you were giving me a solution to the problem but instead you only described your experience which unfortunately doesn't work in my installation having tried clicking several times and waiting for hours. I just hope that a developer is able to fix the problem or at least indicate when it will be done. Thanks anyway for your experience and support.

@Acwildweb
Copy link
Author

I finally solved it by downgrading to an older version where everything seems to work better. It's absurd that with the advancement of the version, instead of improving the software, they break other things!

@StrayChild01
Copy link

StrayChild01 commented Oct 31, 2024

It happened to me, but I didn't want to downgrade. In my case, I had to resort to the following:

  • Check the IDs of the containers that are running (the ones shown as legacy) by running:
    docker container list
  • Check the volumes used by the all the containers by issuing the following command:
    docker ps -a --format '{{ .ID }}' | xargs -I {} docker inspect -f '{{ .Name }}{{ printf "\n" }}{{ range .Mounts }}{{ printf "\n\t" }}{{ .Type }} {{ if eq .Type "bind" }}{{ .Source }}{{ end }}{{ .Name }} => {{ .Destination }}{{ end }}{{ printf "\n" }}' {} | tee -a /tmp/my-container-volumes.txt
  • Stop each container manually, for example the id 97e242ebb8bc:
    docker container stop 97e242ebb8bc
  • Reinstall the application by using the volumes shown in /tmp/my-container-volumes.txt by using the "custom install" button.
  • Remove the container since we won't use it anymore:
    docker container rm 97e242ebb8bc

I know this is far from ideal and I remember that I didn't have to to that before, but it allowed me to do some cleaning because the old images not being used are still there using disk space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha Issues in Alpha Testing bug Something isn't working
Projects
Status: Reported
Development

No branches or pull requests

4 participants
@StrayChild01 @Acwildweb @Gendmyb and others