-
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
Undefined index: share_name at \/var\/www\/html\/owncloud\/lib\/private\/Share20\/DefaultShareProvider.php#863 #28285
Comments
can you check that the column "oc_share.name" does exist ? |
No, the column name doesn't exists.
|
So there's your problem. The column should have been created when updating to 10.0.2. How did you update ? The migration in question is class You could also try running |
I just downloaded the repo and run Is there a way to check the complete database for missing columns ? Or at least were can I find the specs so I can add the column myself? The
|
What are the specification for the oc_share.name column ? Or where can I find the complete database schema ? |
The column is added after the command But is there a way to check if there are more missing columns (integrity check for the database)? |
there is currently no way to check for a full integrity of the database because with the migrations approach, there is no full definition of the DB schema. The main question here is why this one migration didn't run for you guys in the first place. Can you guys do a The upgrade code decides what migrations to run based on what's in that oc_migrations table, so the mystery so far is why it decided to not run it. |
Ok. I don't know what went wrong at that time. I've checked the The Thanks for the support and quick responses! |
I had the same problem after upgrading from 7.0 -> 8.0 -> 8.1 -> (...) -> 10.0.
solved my problem too. |
@hdijkema could you please recall the exact version you had before 10.0 in your upgrade path? |
Needs special conditions, not reproducible in the wild
After 10.0.2:
|
It was a standard debian jessie installation (with non standard postgresql 9.4 I think). $OC_Version = array(7,0,4,2); |
@hdijkema sorry, I mean right before 10.0 |
Oh, that be the latest 9.1 version. Here are all the versons I installed to upgrade from 7.0.4 to 10.0.2
|
@hdijkema thanks! |
I'm using redis since 10.0.2. Had some trouble getting it to work (i.e. any memory caching backend), but that was due to the fact that I ran php 5.6 in apache2 and php 7 on my CLI (of which I wasn't aware). After I synchronized the PHP versions it worked fine. See also #28777 Maybe the upgrade went partly wrong because of this issue? Although I upgraded using the CLI, so that would be all using php7. |
Still no idea.
|
@VicDeo I suggest trying setting up OC 7 and then upgrading all the way. But I must say that my personal OC instance exists since OC 4.5 and I'm now on 10.0.3RC1 and didn't have any issues with the introduction of migrations. I wonder if maybe during the upgrade some migration failed and aborted without displaying an error, and for some reason maybe the upgrade still continued ?! |
I tried simulating an exception within a migration during an upgrade. The upgrade failed properly, so it'S not an issue about a silent failure where migrations aren't all run. |
Did you guys had to run If yes, then it would get use closer to the potential issue: if an upgrade was run and failed, it is likely that the database was in a "in-between" state where the migrations could not resume properly. But then I don't see why OC would report a successful upgrade without having run all the migrations. |
More mysteries from the neighbor ticket, more people having it: #28695. If there is a situation where migrations are getting skipped, it could explain both tickets. Still need to find out when it is happening and how to reproduce this. A dump of |
Hey, this issue has been closed because the label |
Hello, I experienced this issue as well. In my case I recently became responsible for the administration of an existing owncloud 9.1.4 installation, which someone else set up some time ago. Thus, I do not know what was done to this owncloud before. I decided to move the installation to a different machine and, then, to upgrade it from owncloud 9.1.4 to 10.0.4 in one step by following the Manual ownCloud Upgrade guide. I did this yesterday. The upgrade was not completely flawless. To be precise: for some reasons (I dont remember and unfortunately have not logged it) it recommended me to perform a filescan which I did. After the update the web interface appeared to be fine and my owncloud desktop client (version 2.3.4 for Windows) was synching with my account without any error. However, others were experiencing problems with the owncloud desktop client's sync. For example, one user reported that he is having 501 internal server errors (version 2.4 for Mac). The users use various operating systems and various client versions. The
A
The dump of the
|
The database field was missing for us too, after migration from 9.1.6 to 10.0.4. We added the field manually and #28068 (comment) is not visible anylonger. So far we dont see other failures. I didnt check for same failures like cplewenia is having. (Before and after our "fix" to add the missing database field manually) |
Question: did you guys ever have a failed upgrade ? If yes, did you not revert the database to the backup state ? It is likely that some migrations believe that a table already exists due to previous/partial migration and now they do not operate at all. Would be good to confirm this. |
Hi Vincent,
That could be indeed. I don't think I reverted the database at that time.
2018-02-07 12:16 GMT+01:00 Vincent Petry <notifications@github.com>:
… Question: did you guys ever have a failed upgrade ? If yes, did you not
revert the database to the backup state ?
It is likely that some migrations believe that a table already exists due
to previous/partial migration and now they do not operate at all. Would be
good to confirm this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28285 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Acehnarb42E98eltWieJloYJHjVQ9Lteks5tSYYWgaJpZM4OMLAB>
.
|
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
Please note that reverting the OC code to an older version without reverting the database to said version is not supported. The database needs to be in the previous pre-upgrade state when rolling back. If the problem happened for you the first time without any rollback, please reopen. |
Error reported again on central: OS: Gentoo
copied from this #29061 (comment) |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
OR
Expected behaviour
There are a lot of errors in the log and the occ filescan doesn't work. A lot of errors. I think for some reason the share_name index isn't in the $data variable in the DefaultShareProvider.php (check line 863)
Actual behaviour
Tell us what happens instead
Server configuration
Operating system:
Cent OS 7 (7.3.1611)
Web server:
Apache 2.4.6
Database:
mysql 14.14 Distrib 5.6.36
PHP version:
php 5.6.30
ownCloud version: (see ownCloud admin page)
10.0.2 (stable)
Updated from an older ownCloud or fresh install:
from 9.1.2 (stable) (9.1.6 after update I think) to 10.0.2
Where did you install ownCloud from:
http://download.owncloud.org/download/repositories/10.0.2/CentOS_7/ce:10.0.repo
Signing status (ownCloud 9.0 and above):
"https://gist.github.com/dc75la/a23c6b866adce8ee1c45bc17c92ceb78"
(because of a bug with column length: 256 set to 255)
The content of config/config.php:
$CONFIG = array (
'instanceid' => '--scrambled--',
'passwordsalt' => '--scrambled--',
'trusted_domains' =>
array (
0 => '--scrambled--',
1 => '--scrambled--',
),
'datadirectory' => '/home/--scrambled--',
'overwrite.cli.url' => 'https://--scrambled--',
'dbtype' => 'mysql',
'version' => '10.0.2.1',
'installed' => true,
'mail_smtpmode' => 'sendmail',
'mail_smtphost' => '--scrambled--',
'mail_smtpport' => '25',
'mail_from_address' => '--scrambled--',
'mail_domain' => '--scrambled--',
'loglevel' => '0',
'mail_smtpauthtype' => '--scrambled--',
'maintenance' => false,
'secret' => '--scrambled--',
'theme' => '',
'updatechecker' => false,
'trashbin_retention_obligation' => 'auto, auto',
'dbname' => '--scrambled--',
'dbhost' => 'localhost:3306',
'dbuser' => '--scrambled--',
'dbpassword' => '--scrambled--',
// 'memcache.local' => '\OC\Memcache\APCu',
// );
'filelocking.enabled' => true,
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
// 'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
'host' => '127.0.0.1',
'port' => 6379,
'timeout' => 0,
),
);
List of activated apps:
Enabled:
Disabled:
Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Logs
Web server error log
no errors related to the share_name error
ownCloud log (data/owncloud.log)
A lot of {"reqId":"WUgLRmyBEqVmVQy7zQ1zkwAAAAw","level":3,"time":"2017-06-19T17:35:02+00:00","remoteAddr":"--scrambled--","user":"--scrambled--","app":"PHP","method":"PROPFIND","url":"/owncloud/remote.php/dav/files/--scrambled--/","message":"Undefined index: share_name at /var/www/html/owncloud/lib/private/Share20/DefaultShareProvider.php#863"}
Messages
The text was updated successfully, but these errors were encountered: