-
Notifications
You must be signed in to change notification settings - Fork 138
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
(t) Samba shares not accessible 5.0.6-0 & 5.0.7-0 #2794
Comments
Adding associated forum reporters: |
….6-0 & 5.0.7-0 rockstor#2794 Introduce 'poetry-plugin-dotenv' to enable Poetry to establish environmental variables from a .env file. Add PASSWORD_STORE_DIR variable to inform OS level 'password-store' app of our configuration. ## Includes: - Additional logging to poetry-install.txt to indicate plugins installed. - modify export statement for PASSWORD_STORE_DIR in build.sh, this is also now set via our recent rockstor-build.service file.
It would be nice to have a linux cli client reproducer for this, i.e. a command line smbclient command or the like to reproduce the issue. We then have a simple proof of fix reproducer. A pull request is now in the works (draft - in-development status). @Hooverdan96
The hope is we can clean this up a tad. Take a look at the linked draft PR, I think on the poetry side we can use the indicated plugin (yet to be proven), but I'm hoping we can use this same file equally in systemd scripts via EnvironmentFile: https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile= |
My apologies for the slightly rushed troubleshooting on the forum thread linked above. I should have provided a more clear list of steps. The following was tested on a Rockstor-5.0.7 RPM, as well as on Rockstor built-from-source using current Testing branch:
The samba log shows:
|
…tor#2794 Update poetry-plugin-dotenv to latest 0.6.10
…kstor#2794 - Include new `.env` file in project.toml for sdist inclusion. - Adopt new `poetry run mnt-share share-name`, with required `cd`, in new `root preexec` Samba share config creation.
…kstor#2794 - fix incorrect plugin url reference in build.sh - NO SECRETS indicator in .env file.
…kstor#2794 - Fix legacy Poetry removal regression introduced when build.sh execution was moved to a systemd service from rpm %posttrans. - Add python-dotenv to .env file compatibility comments.
…kstor#2794 - Add smb.conf preexec migration procedure to initrock. - Modify samba.py smb.conf machine edits to aid above migration target.
…kstor#2794 - remove smb nmb restarts on prior preexec migrations.
…kstor#2794 - Add DJANGO_SETTINGS_MODULE environment variable to .env file. - Resource .env file in all relevant rockstor*.service files via `EnvironmentFile=` directive. - Normalise on `/usr/local/bin/poetry run` script invocation in all relevant rockstor*.service files. - Modify developer instructions (build.sh) to account for new poetry-plugin-dotenv.
…kstor#2794 - In development typo in build.sh
…kstor#2794 - Update build.sh `pipx inject poetry`: poetry-plugin-dotenv==0.6.11
Introduce 'poetry-plugin-dotenv' to enable Poetry to establish environmental variables from a .env file. Add PASSWORD_STORE_DIR & DJANGO_SETTINGS_MODULE variables to inform OS level 'password-store' app, & our .venv Django of their configuration. ## Includes: - Additional logging to poetry-install.txt to indicate plugins installed. - Include new `.env` file in project.toml for sdist inclusion. - NO SECRETS indicator in new .env file. - Add `source .env` to build.sh to ease development, the .env file is also read by build.sh's dedicated rockstor-build.service. - Pin, in build.sh, poetry-plugin-dotenv to latest 0.6.11 - Adopt new `poetry run mnt-share share-name`, with required `cd`, in new `root preexec` Samba share config creation. - Incidentally fix legacy Poetry removal regression introduced when build.sh execution was moved to a systemd service from rpm %posttrans. - Add smb.conf preexec migration procedure to initrock. - Remove redundant smb & nmb restarts from prior preexec migrations. - Resource .env file in all relevant rockstor*.service files via `EnvironmentFile=` directive. - Normalise on `/usr/local/bin/poetry run` script invocation in all relevant rockstor*.service files. - Modify developer instructions (build.sh) to account for new poetry-plugin-dotenv.
…essible-5.0.6-0-&-5.0.7-0 (t) Samba shares not accessible - 5.0.6-0 & 5.0.7-0 #2794
Closing as: |
Thanks to forum user Mark93, it appears that in the latest testing channels (5.0.6 & 5.07) samba shares are not accessible and fail in the area related to the recently revamped secrets management. For details of symptoms and troubleshooting refer to the thread:
SMB Shares inaccessible after update to 5.0.6-0
@FroggyFlox has identified a possible fix for this situation here:
Comment 18.
If that is indeed the solve, two questions (and they can be handled in separate issues):
The text was updated successfully, but these errors were encountered: