No uploads via browser since upgrading to 9.1.4. WebDAV is OK. #27156

Open
JoeatMJ opened this Issue Feb 14, 2017 · 26 comments

Projects

None yet

5 participants

@JoeatMJ
JoeatMJ commented Feb 14, 2017

Steps to reproduce

  1. Update from from owncloud.org ubuntu repos
  2. Follow upgrade procedure
  3. Web browser uploads no longer work.

Expected behaviour

Tell us what should happen

You should be able to upload via browsers using the upload button or dragging and dropping.

Actual behaviour

Tell us what happens instead

Icon changes on the file being dragged, but nothing happens after you release.

Server configuration

Operating system: Ubuntu 16.04 Server LTS

Web server: Apache2

Database: MySql

PHP version: 7.0

ownCloud version: (see ownCloud admin page) 9.1.4 (stable)

Updated from an older ownCloud or fresh install: 9.1.3 (stable)

Where did you install ownCloud from: owncloud repos for Ubuntu hosted at owncloud.org

Signing status (ownCloud 9.0 and above): Good

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.
No errors have been found.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

or 

Insert your config.php content here
(Without the database password, passwordsalt and secret)

Are you using external storage, if yes which one: local/smb/sftp/...
No

Are you using encryption: yes/no
Yes

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No

Client configuration

Browser:
Chrome
Firefox
IE
Safari
You name it.

Operating system:
Windows 10
MacOS 10, 11, 12

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
@DeepDiver1975
Member

@JoeatMJ your report holds not enough information about your issue. Please provide information like log entries and browser console output. THX

@JoeatMJ
JoeatMJ commented Feb 15, 2017

_Here are some sample log entries of note:

This one, I have loads of:_

Fatal remote Downgrading is not supported and is likely to cause unpredictable issues (from 9.1.4.2 to 9.1.3.1)

I upgraded using APT and using the repositories at owncloud.com. I have done it several times with no issues at all. I would have reverted back to a backup, but we had files that needed to get out and the links have already been sent to the end users.

This one I am getting a good deal as well:

Fatal webdav Exception: {"Message":"HTTP/1.1 503 System in maintenance mode.","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0 [internal function]: OCA\DAV\Connector\Sabre\MaintenancePlugin->checkMaintenanceMode(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#1 /var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#2 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(446): Sabre\Event\EventEmitter->emit('beforeMethod', Array)\n#3 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(248): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#4 /var/www/owncloud/apps/dav/appinfo/v1/webdav.php(57): Sabre\DAV\Server->exec()\n#5 /var/www/owncloud/remote.php(164): require_once('/var/www/ownclo...')\n#6 {main}","File":"/var/www/owncloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php","Line":84,"User":"thatguy"}

@PVince81
Collaborator

Are these log entries appear exactly after performing an upload ?

It should be impossible to do anything in the web UI when in maintenance mode. There is no such thing as partial maintenance mode.

@LalaBen
LalaBen commented Feb 15, 2017

Hi, i have the same problem, i open a topic here :
https://central.owncloud.org/t/upload-through-web-dont-work-since-9-1-4/5786/7

The problem is log in firebug :
TypeError: OC.Util.isIE11 is not a function if (OC.Util.isIE11()) { file-up...2277a96 (ligne 340, col. 10)

And in chrome :
Uncaught TypeError: OC.Util.isIE11 is not a function at HTMLInputElement.add (https://*****) at $.(anonymous function).(anonymous function)._trigger (https://****) at File.<anonymous> (https://****) at Function.each (https://****) at $.(anonymous function).(anonymous function)._onAdd (https://****) at $.(anonymous function).(anonymous function)._onAdd (https://****) at Object.<anonymous> (https://*****) at j (https://****) at Object.add [as done] (https://****) at Object.always (https://****)

@PVince81
Collaborator

Try typing this in your browser console:
OC.Util.isIE8()
then
OC.Util.isIE11()

What's the result ?

I tried my own 9.1.4 instance and uploading works fine.
Maybe the file core/js/js.js did not get updated properly ?

@LalaBen
LalaBen commented Feb 15, 2017 edited

Hi, i have this :

Firebug :

OC.Util.isIE8()
false
OC.Util.isIE11()
TypeError: OC.Util.isIE11 is not a function
OC.Util.isIE11()

Chrome console :

OC.Util.isIE8()
false
OC.Util.isIE11()
VM255:1 Uncaught TypeError: OC.Util.isIE11 is not a function
    at <anonymous>:1:9
(anonymous) @ VM255:1
@LalaBen
LalaBen commented Feb 16, 2017

@PVince81 can i help you with an other thing ?

Thanks :)

@PVince81
Collaborator

Try taking the file core/js/js.js from the original tarball and compare it with yours.
Something likely went wrong when replacing the source code in your updates

@LalaBen
LalaBen commented Feb 16, 2017

Thank you, i'll do it right now :)

@LalaBen
LalaBen commented Feb 16, 2017

Same sha256sum : ad305aa40c0be809abec45a56481377786f019abb047e4bd6e74382a38383a59

:(

@PVince81
Collaborator

@LalaBen clear browser cache ?

If it still doesn't work, open the developer console and check the "js.js" file. At line 1882 you should see the isIE11 function, like here: https://github.com/owncloud/core/blob/v9.1.4/core/js/js.js#L1882

@LalaBen
LalaBen commented Feb 16, 2017

oh wait !
I have a js.js in my personnal theme folder ! May be it is the problem ??

@PVince81
Collaborator

Very likely.

@LalaBen
LalaBen commented Feb 16, 2017

I copy js.js in my theme and it works...

It's really problematic for future updates. How can i will know files i need to change or not ??

@PVince81
Collaborator

Why do you copy js.js into your theme ? You don't need to do that.

@LalaBen
LalaBen commented Feb 16, 2017

I have :
owncloud/core/js/js.js
AND
owncloud/themes/MY-THEME/core/js/js.js

So i just did :
cp owncloud/core/js/js.js owncloud/themes/MY-THEME/core/js/.

And uploads works now

@LalaBen
LalaBen commented Feb 16, 2017

So what does Owncloud recommend to update my theme (the folder) without broke it ? :/

Merge what ?

Thank you again for your help

@PVince81
Collaborator

Repeating the question:

Why do you copy js.js into your theme in the first place ?
You don't need to do that.

Just remove js.js from the theme.

@PVince81
Collaborator

and also remove any other file that you have copied there.

The theme should only contain custom additional files.

@LalaBen
LalaBen commented Feb 16, 2017

Why do you copy js.js into your theme in the first place ?
if your question is why there is a js.js into my theme ?
honestly i dont fucking know and it does not reassure me...
I just modify css and images in my theme, and i have never seen all this files in core... i don't understand oO

@tomaaa
tomaaa commented Feb 17, 2017 edited

Hello,
I have exactly the same problem but I didn't modify the theme folder. I don't find a solution for now. Uploading with apps works. When I upload, I receive " Error uploading file "splash.png": badgateway " error message.

Thanks

@PVince81
Collaborator

@tomaaa follow the same path: #27156 (comment)

@tomaaa
tomaaa commented Feb 17, 2017

It's a new installation, I ran both functions :
OC.Util.isIE8()
false
OC.Util.isIE11()
false

core/js/js.js my js.js file and yours are the same.

@PVince81
Collaborator

@tomaaa then your problem is not exactly the same as @LalaBen but show similar symptoms.

Can you fill out the issue template https://raw.githubusercontent.com/owncloud/core/master/.github/issue_template.md especially the parts about logs ? It might help find out what's going on on your setup.

@tomaaa
tomaaa commented Feb 22, 2017 edited

@PVince81 It's seems a firewall issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment