-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Owncloud Server Unsyncs all data from client and then resyncs #32552
Comments
I have uploaded the log file of owncloud for review |
When an external storage like SMB becomes unavailable, the code should throw The question here is why this behavior was not observed on your setup. In what way did your SMB server "go down" ? Was it still possible to connect to it during downtime ? Was it off the network ? (connection refused) |
@cdamken @jvillafanez FYI |
Good Day
|
|
My original owncloud config all data was in the www data folder |
do you have php7-libsmbclient enabled on your server ? if not you might try with it |
Here is the detailed setup of my owncloud server apt install -y apache2 wget https://download.owncloud.org/community/owncloud-10.0.4.tar.bz2 tar -xjf owncloud-10.0.8.tar.bz2 cp -r owncloud /var/www/html nano /etc/apache2/sites-available/owncloud.conf Alias /owncloud "/var/www/html/owncloud/" <Directory /var/www/html/owncloud/> SetEnv HOME /var/www/html/owncloud ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf a2enmod rewrite service apache2 restart chown -R www-data:www-data /var/www/html/owncloud/ sudo mysql --user=root mysql nano /etc/apache2/ports.conf service apache2 restart nano /etc/apache2/sites-enabled/owncloud.conf Alias / "/var/www/html/owncloud/" nano /var/www/html/owncloud/config/config.php 'overwrite.cli.url' => 'http://105.212.61.43:8090', #Install the Build and Test Dependencies sudo apt-get update #Download and Extract the Source Code cd /tmp curl -O http://download.redis.io/redis-stable.tar.gz cd redis-stable /etc/redis/redis.conf If you run Redis from upstart or systemd, Redis can interact with yoursupervision tree. Options:supervised no - no supervision interactionsupervised upstart - signal upstart by putting Redis into SIGSTOP modesupervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKETsupervised auto - detect upstart or systemd method based onUPSTART_JOB or NOTIFY_SOCKET environment variablesNote: these supervision methods only signal "process is ready."They do not enable continuous liveness pings back to your supervisor.supervised systemd . . . #We will use the /var/lib/redis directory for this, which we will create in a moment: /etc/redis/redis.conf The working directory.The DB will be written inside this directory, with the filename specifiedabove using the 'dbfilename' configuration directive.The Append Only File will also be created inside this directory.Note that you must specify a directory here, not a file name.dir /var/lib/redis #. . . #Create a Redis systemd Unit File #Create and open the /etc/systemd/system/redis.service file to get started: sudo nano /etc/systemd/system/redis.service /etc/systemd/system/redis.service To start the service, we just need to call the redis-server binary, pointed at our configuration. To stop it, we can use the Redis shutdown command, which can be executed with the redis-cli binary. Also, since we want Redis to recover from failures when possible, we will set the Restart directive to "always": /etc/systemd/system/redis.service [Service] /etc/systemd/system/redis.service [Service] [Install] #Create the Redis User, Group and Directories #Begin by creating the redis user and group. This can be done in a single command by typing: sudo adduser --system --group --no-create-home redis sudo mkdir /var/lib/redis sudo chown redis:redis /var/lib/redis sudo chmod 770 /var/lib/redis #Start the Redis Service sudo systemctl start redis sudo systemctl status redis Output . . . redis-cli ping Output set test "It's working!" get test Output exit sudo systemctl restart redis redis-cli Output exit To do so, type: sudo systemctl enable redis Owncloud Redis Configuration nano /var/www/html/owncloud/config/config.php 'memcache.local' => '\OC\Memcache\Redis', #Setting up Cron Jobs #Verify if cornjob is added |
I will verify the version |
apt install -y php-smbclient |
php --version |
You might want to try #32416 patch and check if the situation improves. It's expected to come with OC 10.0.10 Nevertheless, there are other errors you might want to investigate, specially the ones like
You might also want to update to 10.0.9 because it includes an update to the smb library that ownCloud is using. It might help with the above. |
Thanks for the update |
How do i apply the patch above 32416 |
Thanks jvillafanez and PVince81 for your support |
https://doc.owncloud.org/server/10.0/admin_manual/maintenance/upgrade.html should contain enough information to upgrade your server |
Thanks and the Patch how do I apply that |
Patch code can be found in https://patch-diff.githubusercontent.com/raw/owncloud/core/pull/32416.patch . You can download it and apply with the "patch" utility. In any case, before attempting to patch something, know what you're doing as it can break the system, so have a backup ready in case something goes wrong. |
Thanks jvillafanez |
@jvillafanez Just to verify I must to the upgrade first and then apply the patch |
Yes, otherwise the patch will likely be removed after the upgrade since it isn't available in 10.0.9. |
Thanks @jvillafanez |
@jvillafanez |
Related to:
You should have a look into using SMBv2 ( or higher) as protocol. This might also require, that you use a more recent samba library (4.7/4.8) |
@patrickjahns https://www.samba.org/samba/history/ 14 August 2018 These are security releases in order to address I will upgrade to latest stable release |
@jvillafanez |
https://linux.die.net/man/1/patch
If you're using a VM I think it's easier to take a snapshot of the VM and use it as backup instead of making the backups of the DB and ownCloud separately. |
I will do that. So i do not need to run the upgrade command as well? |
I delete everything accept data and config folder |
Please review my revised process |
You have to run the upgrade command at step 9-10 in order to run the upgrade routines. It's recommended to have the webserver disabled (maybe just the ownCloud site, not the whole webserver) in order to prevent unwanted interactions with ownCloud during the upgrade. |
I gather we need the webservice running for the upgrade to work |
Manual ownCloud Upgrade of Existing Owncloud Vmware Virtual Server |
Do you want me to start the webservice before the upgrade |
@jvillafanez the patch process |
@jvillafanez |
@johanbt please note that this is a bug tracker, not a support portal. |
@PVince81 |
Seems like I had the same problem: 1 - As admin user I configured a general WND mountpoint (Win10 as backend located in a Virtual Machine) |
Just a minor correction: you're not sharing anything there. You're allowing access to the files in that storage to the members of that group (in that particular case) Anyway, this is what I tested, and I think it's working fine
This is a different scenario. I haven't tested this one, so there might be problems. Maybe @davitol can help to reproduce the problem. I can't say for sure, but it looks really problematic. Taking a guess, the shared folder might disappear because of the error thrown by the underlying storage. The problem might be in the sharing, as it might be not properly handling this error case. As a workaround for now, I'd recommend to avoid using sharing over external storages if you can ensure a stable connection to the storage (to prevent this connection problem). You can either set a proper external storage connection for all the users, or let the user connect via SMB to other servers. If people want to share files, they can use the external storage for that, although it won't really be private. |
Good Day Sir
Thanks in advance for your support.
I implemented owncloud for one of my customers.
Currently we have the following challenge:
The server unsyncs all data from the clients and the resyns the data back, this causes mayor delays in productivity.
I have seen to scenarios
When the storage unit goes down it removes all data
or when authentication is lost to the smb share for any reason
I have also seen the smb share is up but owncloud re-links to it.
Please find below all the config data.
I really hope you can assist me urgently.
Server configuration
Operating system: Ubuntu 16.04 lts
Web server:
apache2 -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2018-06-07T19:43:03
Database:
dpkg -l | grep mariadb
ii mariadb-client-10.0 10.0.36-0ubuntu0.16.04.1 amd64 MariaDB database client binaries
ii mariadb-client-core-10.0 10.0.36-0ubuntu0.16.04.1 amd64 MariaDB database core client binaries
ii mariadb-common 10.0.36-0ubuntu0.16.04.1 all MariaDB common metapackage
ii mariadb-server 10.0.36-0ubuntu0.16.04.1 all MariaDB database server (metapackage depending on the latest version)
ii mariadb-server-10.0 10.0.36-0ubuntu0.16.04.1 amd64 MariaDB database server binaries
ii mariadb-server-core-10.0 10.0.36-0ubuntu0.16.04.1 amd64 MariaDB database core server files
PHP version:
php -v
PHP 7.0.30-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.30-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
php -i | grep -i '^libxml'
libxml Version => 2.9.3
libxml
libXML support => active
libXML Compiled Version => 2.9.3
libXML Loaded Version => 20903
libXML streams => enabled
libxml2 Version => 2.9.3
ownCloud version:
System Status
installed 1
maintenance
needsDbUpgrade
version 10.0.8.5
versionstring 10.0.8
edition Community
productname ownCloud
Storage backend (external storage):
Freenas ixsystem storage solution
accessing Data over smb/cifs share
Also
Add additional drive to owncloud server owncloud accessing drive over smb/cifs share
redis-server
29831:C 30 Aug 10:08:38.185 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
29831:C 30 Aug 10:08:38.185 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=29831, just started
29831:C 30 Aug 10:08:38.185 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
29831:M 30 Aug 10:08:38.185 * Increased maximum number of open files to 10032 (it was originally set to 1024).
29831:M 30 Aug 10:08:38.185 # Creating Server TCP listening socket *:6379: bind: Address already in use
What I have seen is that if the storage unit or any smb share is down or the owncloud server cannot connect to it,it removes the files from the clients desktops, when the storage unit is online or the smb share the it resyncs
Can we config the server that it does not remove the files when the remote share or online storage is off line
Owncloud
Runs in virtual environment vmware 6.5 on hp server
when the share is down and shows 0 kb
the data is removed from the clients
image
The text was updated successfully, but these errors were encountered: