akiradeveloper / akashic-storage

Filey system backed S3-compatible storage in Scala/Akka-Http
Apache License 2.0
22 stars 2 forks source link

server daemon can't respond to GET Service/Bucket #63

Closed akiradeveloper closed 8 years ago

akiradeveloper commented 8 years ago

because I can't see logback, it's difficult to debug. GET Object is OK. PUT Bucket/Object have been done as unauthorized user and the requests in question is so. No idea why it causes 500

[vagrant@localhost ~]$ wget http://localhost:10946
--2016-03-21 04:09:53--  http://localhost:10946/
localhost (localhost) をDNSに問いあわせています... ::1, 127.0.0.1
localhost (localhost)|::1|:10946 に接続しています... 失敗しました: 接続を拒否されました.
localhost (localhost)|127.0.0.1|:10946 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 500 Internal Server Error
2016-03-21 04:09:53 エラー 500: Internal Server Error。

[vagrant@localhost ~]$ wget http://localhost:10946/myb
--2016-03-21 04:09:44--  http://localhost:10946/myb
localhost (localhost) をDNSに問いあわせています... ::1, 127.0.0.1
localhost (localhost)|::1|:10946 に接続しています... 失敗しました: 接続を拒否されました.
localhost (localhost)|127.0.0.1|:10946 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 500 Internal Server Error
2016-03-21 04:09:44 エラー 500: Internal Server Error。

The tree is OK

[vagrant@localhost ~]$ tree /tmp/akashic-storage-test/
/tmp/akashic-storage-test/
├── admin
│   └── db
├── astral
└── tree
    └── myb
        ├── acl
        ├── keys
        │   └── myo
        │       ├── uploads
        │       └── versions
        │           └── 0
        │               ├── acl
        │               ├── data
        │               └── meta
        ├── location
        └── versioning
akiradeveloper commented 8 years ago

I think I should add automated test for this senario (curl and wget) to separete the daemon issue. jsvc looks so unstable

akiradeveloper commented 8 years ago
$ curl http://localhost:10946/hogehoge
<Error>
      <Code>NoSuchBucket</Code>
      <Message>The specified bucket does not exist.</Message>
      <Resource>/hogehoge/</Resource>
      <RequestId>TQJl26HiXWnBhgYk</RequestId>

If the non existent bucket is specified, the correct XML appears. Let's write test

akiradeveloper commented 8 years ago

Solved. It was that no user is found for anonymous id