Skip to content
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

problem retrieving object with swift backend #7667

Closed
ayoubboulila opened this issue Mar 11, 2014 · 5 comments
Closed

problem retrieving object with swift backend #7667

ayoubboulila opened this issue Mar 11, 2014 · 5 comments

Comments

@ayoubboulila
Copy link

Successefully mounted Swift on owncloud and owncloud is showing the existed files on the backend but :
doesObjectExist($path) method in Swift.php is throwing exception making problems when traying to upload files to swift .

owncloud.log :

{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/New%20folder]","level":3,"time":"2014-03-11T12:50:50+00:00"}

So what's going wrong ?

@PVince81
Copy link
Contributor

Would be good to know which version of ownCloud you are using.
Please use the issue template: https://raw.github.com/owncloud/core/master/issue_template.md

Thanks!

@ayoubboulila
Copy link
Author

Steps to reproduce

Mount owncloud on external storage (openstack swift v1 with keystone v2.0 auth)

mount config :

{"user":{"all":{"/$user/files/OpenStackObjectStorage":{"class":"\OC\Files\Storage\Swift","options":{"user":"ayoub","bucket":"owncloud_Container","region":"RegionOne","tenant":"ayoub","password":"*****","service_name":"swift","url":"192.168.103.6:5000/v2.0/","timeout":"5000"}}}}}

Actual behavior

problem uploading files (WebGui and client application), doesObjectExist($path) method in Swift.php is throwing exception

Server configuration

Operating system: windows7/ubuntu12.04
**Web server:**Apache
**Database:**Mysql
**PHP version:**5.4.16
**ownCloud 6.0.2 (stable) **
Fresh install

The content of owncloud.log

{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/New%20folder/release_notes.pdf]","level":3,"time":"2014-03-11T13:26:21+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/New%20folder/release_notes.pdf/]","level":3,"time":"2014-03-11T13:26:21+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/New%20folder/release_notes.pdf]","level":3,"time":"2014-03-11T13:26:21+00:00"}
{"app":"PHP","message":"Undefined index: X-Timestamp at C:\xampp\htdocs\owncloud2\owncloud\apps\files_external\lib\swift.php#250","level":3,"time":"2014-03-11T13:39:36+00:00"}
{"app":"PHP","message":"Undefined index: X-Timestamp at C:\xampp\htdocs\owncloud2\owncloud\apps\files_external\lib\swift.php#250","level":3,"time":"2014-03-11T13:39:37+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"PHP","message":"Undefined index: X-Timestamp at C:\xampp\htdocs\owncloud2\owncloud\apps\files_external\lib\swift.php#250","level":3,"time":"2014-03-11T13:39:43+00:00"}
{"app":"files_external","message":"Problem retrieving object [http://192.168.103.6:8080/swift/v1/owncloud_Container/folder]","level":3,"time":"2014-03-11T13:39:44+00:00"}
{"app":"PHP","message":"Undefined index: X-Timestamp at C:\xampp\htdocs\owncloud2\owncloud\apps\files_external\lib\swift.php#250","level":3,"time":"2014-03-11T13:39:44+00:00"}

@PVince81
Copy link
Contributor

@ayoubboulila this warning can be ignored.
The thing is that sometimes we need to check whether a file exists, so make a call.
If that call fails ("problem retrieving object") then it means the file doesn't exist.

This PR will remove the useless warning: #7897

Are you having trouble download files ? That should work regardless of the warning.

@ayoubboulila
Copy link
Author

I made the changes and the warning was gone and the download/upload threw the web interface is working.thank you.

@karlitschek
Copy link
Contributor

So I guess we can close this now

@lock lock bot locked as resolved and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants