呈现的错误:postgis插件:无法连接到服务器

时间:2019-07-01 08:34:59

标签: postgresql render postgis

我的tileserver工作得很好,但是我的磁盘空间已满。因此,我给了我的VM更多的容量,重新启动了它,然后在我通常做完所有事情之后,我得到了呈现的错误:

if(isset($_FILES['image'])){

    require 'vendor/autoload.php';

    $file_name = $_FILES['image']['name'];

    $s3 = new Aws\S3\S3Client([

            'region'  => 'us-east-1',
            'version' => 'latest',
             'http'    => [
            'verify' => false
        ],
            'credentials' => [
                'key'    => "mykey",
                'secret' => "my secret key",
            ]
    ]);

    // Send a PutObject request and get the result object.
    $key = $file_name;
    $file = $_FILES["image"]['tmp_name'];
    $result = $s3->putObject([
            'Bucket' => 'epitahousing',
            'Key'    => $key,
            'SourceFile' => $file,
    ]);

    var_dump("uploaded successfully!!");
    }
    ?>
    <html>
       <body>
          <form action="" method="POST" enctype="multipart/form-data">
             <input type="file" name="image" />
             <input type="submit"/>
          </form>

       </body>
    </html>

如何解决此问题,使我的tileserver再次正常运行?
在此先感谢:)

(如果我的标签有误,请更正我的标签)
(到OSM-Help的交叉发布)

1 个答案:

答案 0 :(得分:0)

已修复。答案:先运行sudo dpkg-reconfigure postgresql,然后运行sudo systemctl restart renderd