You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Clone files_primary_s3 app to apps/ directory and enable app through occ command
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).
I am getting an PHP:TypeError when I run occ command
sudo -E -u www-data ./occ s3:list <bucketname>
onCeph S3
But after uploading a file to the bucket resolves the problem.
Steps to reproduce
Clone files_primary_s3 app to apps/ directory and enable app through occ command
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
copy
apps/files_primary_s3/tests/drone/ceph.config.php
toconfig/
with
docker ps -a
find the id of the running ceph dockerwith
docker inspect <id>
find the IPAddress of the docker containeredit
config/ceph.config.php
set
'endpoint' => 'http://ceph:80/',
to'endpoint' => 'http://<docker-ip>:80/',
create bucket
sudo -u www-data ./occ s3:create-bucket OWNCLOUD --accept-warning
Now run
sudo -E -u www-data ./occ s3:list OWNCLOUD
You get an PHP:TypeError
And run the command again
sudo -E -u www-data ./occ s3:list OWNCLOUD
See that it lists the file you recently uploaded.
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
The text was updated successfully, but these errors were encountered: