-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
NC upgrade erased entire data folder content #2132
Comments
The path you mount is not in upgrade.exclude. https://github.com/nextcloud/docker/blob/master/upgrade.exclude |
thanks Dedy. Does that mean any folder not in upgrade.exclude gets erased
during an upgrade?
…On Thu, Dec 28, 2023 at 4:43 AM Dedy Martadinata S ***@***.***> wrote:
The path you mount is not in upgrade.exclude.
https://github.com/nextcloud/docker/blob/master/upgrade.exclude
—
Reply to this email directly, view it on GitHub
<#2132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNNHGXZ52C25Y6CUVJRTATYLT2HLAVCNFSM6AAAAABBFBE77CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQHAYTOMZQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
In simple terms yes. |
Have you used External?.
I tried the External storage plug in smbclient but it does not work.
Constantly throws errors in the NC log file.
…On Thu, 28 Dec 2023, 05:40 Dedy Martadinata S, ***@***.***> wrote:
In simple terms yes. /var/www/html/data/media is your best bet or use
nextcloud external storage plugin
—
Reply to this email directly, view it on GitHub
<#2132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNNHGVNFTKHD3CTYNWCLATYLUA6TAVCNFSM6AAAAABBFBE77CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQHA2DEOBWGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
tldr; yes, it works. This docker image is not https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/smb |
See https://github.com/nextcloud/docker#persistent-data - last couple paragraphs explains the behavior you encountered. |
- Make the warning more prominent - Clarify the language - Clarity trade-offs Fixes: #2132 Signed-off-by: Josh Richards <[email protected]>
Check #2133 for a proposed adjustment to the README to make this more prominent and to clarify the existing language. Feedback welcome. |
ok thanks. and how can I amend the file update.exclude?
…On Thu, Dec 28, 2023 at 3:01 PM Josh Richards ***@***.***> wrote:
See https://github.com/nextcloud/docker#persistent-data - last couple
paragraphs explains the behavior you encountered.
—
Reply to this email directly, view it on GitHub
<#2132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNNHGRMIZAI73GDLPNWQWDYLWCUNAVCNFSM6AAAAABBFBE77CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGI2TEMJRG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
thanks - I have done the smbclient addition but I still constantly get
errors in the log files:
[PHP] Error: Undefined array key "attributes" at
/var/www/html/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php#155
from ? by -- at 28 Dec 2023, 14:00:37
[files] Error: Malformed state response from server
from ? by -- at 28 Dec 2023, 13:54:22
…On Thu, Dec 28, 2023 at 10:22 AM Dedy Martadinata S < ***@***.***> wrote:
tldr; yes, it works.
This docker image is not complete packages that needed to run out of the
box missing, I dunno why it doesn't want to add samba support and expected
users to build one ourself.
https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/smb
—
Reply to this email directly, view it on GitHub
<#2132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNNHGWIQDJJ56GHANZ65FTYLVB5FAVCNFSM6AAAAABBFBE77CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGAZDSNRUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
That is either an upstream bug (which I'm fairly certain there is an existing issue open in the |
It may well be an upstream bug but the impact on Nextcloud inside Docker is
more significant because NC Docker users are currently left with only 1
alternative to utilise existing external data, via mounting into the
countainer. And that creates its own set of problems related to permissions.
I wish that SMB integration into NC could be fixed. It has been going for
at least 2 years (maybe longer).
…On Sat, 13 Jan 2024 at 04:22, Josh ***@***.***> wrote:
thanks - I have done the smbclient addition but I still constantly get
errors in the log files:
[PHP] Error: Undefined array key "attributes" at
/var/www/html/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php#155
from ? by -- at 28 Dec 2023, 14:00:37
[files] Error: Malformed state response from server
from ? by -- at 28 Dec 2023, 13:54:22
That is either an upstream bug (which I'm fairly certain there is an
existing issue open in the server repo for that) *or* a compatibly issue
with some combination of the server-side/OS SMB related components and your
SMB server (could even be both). It may or may not be a bug in Nextcloud -
there are many SMB protocol/library version combinations.
—
Reply to this email directly, view it on GitHub
<#2132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNNHGWZQQHU33PJJJL2MHLYOGLR3AVCNFSM6AAAAABBFBE77CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZHEYDGMBZG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have recently tried to upgrade from 27.0.1.2 to 28.0.1.1 and this action erased all content of my data folder (which was mapped as a docker volume). Luckily I had a backup but I am curious why the NC upgrade procedure did not retain my old data.
You can see from my compose file below, that I have mapped an existing folder 'MEDIA' into the NC container. This MEDIA folder held 1TB of data has been filled prior to installing NC.
- /srv/mypath/mydata/MEDIA:/var/www/html/media
I add MEDIA as External Folder in Nextcloud with file type "local" and access to all data worked fine.
When I decided to upgrade NC, I added :latest behind the NC container name and re-deployed the stack (in Portainer) with the option "pull containers".
Then the NC log files started filing up with the following recurring errors:
Any ideas why the upgrade resulted in all my data erased (but not the folder itself). Is NC not supposed to keep all persistent data untouched during an upgrade?
My docker compose file is as follows
The text was updated successfully, but these errors were encountered: