ClientErrorResponseException

I am trying to integrate nextcloud with Openstack Swift and I am getting following error.

I have created a swift container using swift post

swift stat nexcloud returns

Account: AUTH_1a92346cb5ce49bfa1b577bec9ad0637
Container: nextcloud
Objects: 0
Bytes: 0
Read ACL:
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Storage-Policy: Policy-0
Last-Modified: Tue, 02 Jan 2018 17:19:49 GMT
X-Timestamp: 1514913588.92537
X-Trans-Id: txddfd973e152b4cf7a5c8e-005a4bd1e8
Content-Type: text/plain; charset=utf-8

Guzzle\Http\Exception\ClientErrorResponseException: Client error response [status code] 404 [reason phrase] Not Found [url] http://24.132.64.40/v2.0/tokens

Any help will be highly appreciated My config.php files look likes this.

<?php
$CONFIG = array (
‘instanceid’ => ‘oc4sy9gpys3h’,
‘passwordsalt’ => ‘Pn6aG+0tnfs4A72Z8uj+aFKPrMKclB’,
‘secret’ => ‘UQlNAxGE6fxphrF+bmO0lQ3E58kljkgsJ3FQ3KozrEEwkyXA’,
‘trusted_domains’ =>
array (
0 => ‘192.168.174.55’,
),
‘datadirectory’ => ‘/var/www/nextcloud-data’,
‘overwrite.cli.url’ => ‘http://192.168.174.55’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘11.0.0.10’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘aticara’,
‘dbpassword’ => ‘test123’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘objectstore’ => array(
‘class’ => ‘OC\Files\ObjectStore\Swift’,
‘arguments’ => array(
‘username’ => ‘admin’,
‘password’ => ‘onecloud’,
// the container to store the data in
’bucket’ => ‘nextcloud’,
‘autocreate’ => true,
‘region’ => ‘RegionOne’,
// The Identity / Keystone endpoint
’url’ => ‘http://24.132.64.40/v2.0’,
// optional on some swift implementations
’tenantName’ => ‘admin’,
‘serviceName’ => ‘swift’,
// The Interface / url Type, optional
’urlType’ => ‘internal’

),
),

);

The log file error is
[Thu Dec 28 11:49:31.288213 2017] [core:notice] [pid 17964] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Dec 28 11:49:35.675713 2017] [php7:error] [pid 17965] [client 192.168.174.7:54143] PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /var/www/nextcloud/index.php:61\nStack trace:\n#0 {main}\n thrown in /var/www/nextcloud/index.php on line 61
[Thu Dec 28 11:49:43.074748 2017] [php7:error] [pid 17966] [client 192.168.174.7:54145] PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /var/www/nextcloud/index.php:61\nStack trace:\n#0 {main}\n thrown in /var/www/nextcloud/index.php on line 61
[Thu Dec 28 11:50:03.011540 2017] [mpm_prefork:notice] [pid 17964] AH00169: caught SIGTERM, shutting down

swift log file error

Jan 2 13:36:24 reader4 account-server: 24.132.64.40 - - [02/Jan/2018:18:36:24 +0000] “HEAD /swiftloopback/42633/.expiring_objects” 404 - “HEAD http://localhost/v1/.expiring_objects” “tx18e846576a8d432b98560-005a4bd128” “proxy-server 23856” 0.0004 “-” 23808 -
Jan 2 13:36:24 reader4 object-expirer: Pass beginning; 0 possible containers; 0 possible objects (txn: tx18e846576a8d432b98560-005a4bd128)
Jan 2 13:36:24 reader4 account-server: 24.132.64.40 - - [02/Jan/2018:18:36:24 +0000] “GET /swiftloopback/42633/.expiring_objects” 404 - “GET http://localhost/v1/.expiring_objects?format=json&marker=&end_marker=” “tx25ae6b94d06448e2a9ee3-005a4bd128” “proxy-server 23856” 0.0004 “-” 23808 -

Nonody???..

I fixed the issue, the Keystone end point was wrong, and also created another swift container and pointed to it, it worked.

Thanks
Madhu