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

Getting PHP:TypeError while running occ command s3:list <bucketname> #179

Open
paurakhsharma opened this issue Jan 15, 2019 · 1 comment

Comments

@paurakhsharma
Copy link
Member

I am getting an PHP:TypeError when I run occ command sudo -E -u www-data ./occ s3:list <bucketname> on Ceph S3
But after uploading a file to the bucket resolves the problem.

Steps to reproduce

  1. Clone files_primary_s3 app to apps/ directory and enable app through occ command

  2. start ceph docker docker run -e NETWORK_AUTO_DETECT=4 -e CEPH_DEMO_UID=owncloud -e CEPH_DEMO_ACCESS_KEY=owncloud123456 -e CEPH_DEMO_SECRET_KEY=secret123456 owncloudci/ceph:tag-build-master-jewel-ubuntu-16.04

  3. copy apps/files_primary_s3/tests/drone/ceph.config.php to config/

  4. with docker ps -a find the id of the running ceph docker

  5. with docker inspect <id> find the IPAddress of the docker container

  6. edit config/ceph.config.php

  7. set 'endpoint' => 'http://ceph:80/', to 'endpoint' => 'http://<docker-ip>:80/',

  8. create bucket sudo -u www-data ./occ s3:create-bucket OWNCLOUD --accept-warning

  9. Now run sudo -E -u www-data ./occ s3:list OWNCLOUD

You get an PHP:TypeError
image

  1. Now upload a file to your owncloud instance using S3 bucket.
    And run the command again sudo -E -u www-data ./occ s3:list OWNCLOUD

See that it lists the file you recently uploaded.
image

Expected behaviour

Occ command should have listed empty list of files or given a friendly error message saying there are no files in the bucket.

Actual behaviour

Occ command gives PHP:TypeError

@phil-davis @individual-it @DeepDiver1975

@ownclouders
Copy link
Contributor

GitMate.io thinks the contributor most likely able to help you is @ownclouders.

Possibly related issues are #111 (Rename occ command s3:ls to s3:list for better identification), #93 (- adding s3:createBucket command), #139 (Add occ command acceptance tests), #8 (Add s3:ls to list buckets, objects and versions), and #155 (occ versions:cleanup does not work with S3).

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

No branches or pull requests

2 participants