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

[Bug] Attached SSD will get a new name after power OFF and ON #770

Closed
pmvamsi-coder opened this issue Dec 20, 2022 · 20 comments
Closed

[Bug] Attached SSD will get a new name after power OFF and ON #770

pmvamsi-coder opened this issue Dec 20, 2022 · 20 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@pmvamsi-coder
Copy link

Describe the bug
The storage attached to the Zimaboard gets a new storage name after each power on and off condition. Containers linked using this SSD are failing. External storage added from CasaOS web UI is not permanent.. the same SSD with the same name is added with -1 at last to the folder name every time the device restarts. Edited /etc/fstab file manually but the option from CasaOS UI is not working.
The issue was already mentioned at #700, but it was closed without being resolved.
To Reproduce
Steps to reproduce the behavior:
The problem repeats whenever the power is turned on and off.
Expected behavior
It should not create a new folder with some number suffix at the end for an already attached SSD whenever the power is turned on and off.

Screenshots

Desktop (please complete the following information):

  • OS: linux
  • CasaOS Version: 0.3.8
  • Disk Total: 27712
  • Disk Used: 13202
  • System Info: [Debian GNU/Linux 11 \l Bit:64 Mem:7801M Core:4 Linux CasaOS 5.10.0-10-amd64 add widget #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux]
  • Remote Version: 0.3.8
  • Browser: Safari
  • Version: 16.1
@pmvamsi-coder pmvamsi-coder added the bug Something isn't working label Dec 20, 2022
@raller1028
Copy link
Contributor

Sorry, we tried to reproduce this issue in v0.4.0 but it didn't happen, can you confirm if this issue still exists in v0.4.0? And you can try again with this command 'curl -fsSL https://get.casaos.io/update | sudo bash' to confirmif the issue is fixed?

@raller1028 raller1028 self-assigned this Dec 21, 2022
@CosmoFox
Copy link

Sorry, we tried to reproduce this issue in v0.4.0 but it didn't happen, can you confirm if this issue still exists in v0.4.0? And you can try again with this command 'curl -fsSL https://get.casaos.io/update | sudo bash' to confirmif the issue is fixed?

Confirming. 0.4.0. Problem is here.

@pmvamsi-coder
Copy link
Author

Sorry, we tried to reproduce this issue in v0.4.0 but it didn't happen, can you confirm if this issue still exists in v0.4.0? And you can try again with this command 'curl -fsSL https://get.casaos.io/update | sudo bash' to confirmif the issue is fixed?

Even after the update .. issue is there.

@jerrykuku jerrykuku moved this to Need Triage (QA+PM) in CasaOS Issues Dec 22, 2022
@LinkLeong
Copy link
Collaborator

You can try unplugging the hard drive and deleting all the wrong folders and try again. If the problem persists, please provide feedback on the hardware and disk information and access type

@pmvamsi-coder
Copy link
Author

I have tried unplugging and re plug the hard disk several times but the same issue is there. Also I have shared the device info in the previous comments.
It's Zimaboard top model.

@CosmoFox
Copy link

I have tried unplugging and re plug the hard disk several times but the same issue is there. Also I have shared the device info in the previous comments. It's Zimaboard top model.

same situation. Unmounted, then unplugged m2 disk. Then back. Reboot. Problem is there.

@jerrykuku jerrykuku moved this from Need Triage (QA+PM) to Planned (Dev) in CasaOS Issues Jan 12, 2023
@raller1028
Copy link
Contributor

@pmvamsi-coder @CosmoFox Sorry, I didn't reproduce this issue in v0.4.0/v0.4.1, but we found that will become after version update, but this will only happen when we upgrade, ssd name will not be added after shutdown/reboot, can you try to upgrade to v0.4.1 and then reboot/shutdown 3 times to check if this problem still exist?

@CosmoFox
Copy link

CosmoFox commented Feb 1, 2023

@pmvamsi-coder @CosmoFox Sorry, I didn't reproduce this issue in v0.4.0/v0.4.1, but we found that will become after version update, but this will only happen when we upgrade, ssd name will not be added after shutdown/reboot, can you try to upgrade to v0.4.1 and then reboot/shutdown 3 times to check if this problem still exist?

At the moment I already have a clean installation of 0.4.1. The problem is no gone.

And also after the update from 0.4.0 to 0.4.1 the problem also disappeared.

@raller1028
Copy link
Contributor

raller1028 commented Feb 1, 2023

In version 0.4.1 you reproduced the problem by directly powering off reboot or using reboot command by terminal? Are there another actions to reproduce the problem?

@CosmoFox
Copy link

CosmoFox commented Feb 1, 2023

At the moment I already have a clean installation of 0.4.1. The problem is no gone.

Sorry, mistake. The problem is no gone. Everything ok!!

@raller1028 raller1028 moved this from Planned (Dev) to To be verified (QA) in CasaOS Issues Feb 1, 2023
@LinkLeong LinkLeong moved this from To be verified (QA) to Planned (Dev) in CasaOS Issues Feb 2, 2023
@pmvamsi-coder
Copy link
Author

issue still there
image

@pmvamsi-coder
Copy link
Author

issue still there
image

image

@raller1028
Copy link
Contributor

@pmvamsi-coder Can you share your operation to reproduce the problem in detail?@ @ thanks

@pmvamsi-coder
Copy link
Author

@pmvamsi-coder Can you share your operation to reproduce the problem in detail?@ @ thanks

Whenever the board is switched off and turned on, folders are automatically generated

@LinkLeong
Copy link
Collaborator

The problem of directory accumulation due to upgrade has been solved in 0.4.2

@tigerinus tigerinus moved this from Planned (Dev) to To be verified (QA) in CasaOS Issues Feb 9, 2023
@tigerinus tigerinus added this to the v0.4.2 milestone Feb 9, 2023
@LinkLeong
Copy link
Collaborator

I checked the logic and only when the folder to be mounted is not empty, a new directory is created. So according to your description, the folder to be mounted is not empty after reboot, and we did not check the possibility that it is not empty. Have you configured the automount manually?

@pmvamsi-coder
Copy link
Author

I checked the logic and only when the folder to be mounted is not empty, a new directory is created. So according to your description, the folder to be mounted is not empty after reboot, and we did not check the possibility that it is not empty. Have you configured the automount manually?

Yes. Why because if I didn't configure it manually every time the drive is getting connected with new name with numbers as suffix. Applications that are using this path will not work if this is the case.

@raller1028
Copy link
Contributor

@pmvamsi-coder v0.4.2 has been released, can you try to verify whether the problem still exists?

@pmvamsi-coder
Copy link
Author

The issue was resolved after the software update. I would like to express my gratitude for your prompt attention and efforts in addressing the issue.

@pmvamsi-coder
Copy link
Author

after the updated

@raller1028 raller1028 moved this from To be verified (QA) to Done in CasaOS Issues Feb 23, 2023
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
Archived in project
Development

No branches or pull requests

5 participants