Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Google cloud as server: only index file uploaded

  • #1068
    Avatar photo[anonymous]

    Dear Forum users,

    I am new to Publii and set up a Google cloud storage bucket as server, which worked ok. But after synching the website, only a single file is placed into the bucket: “files.publii.json” which appears to be some kind of index file. Of course visiting the website does not work.

    This seems to be a bug with Publii (version v.0.35.3 (build 12104) Beta)?

    Any ideas?

    -Chris

    #1079
    Avatar photo[anonymous]

    Hi,

    I am not sure, but it can be related to your bucket configuration. Did you followed our tutorial: https://getpublii.com/docs/make-static-website-google-cloud.html or did you make some custom configuration?

    #1082
    Avatar photo[anonymous]

    Hi,

    I pretty much followed the tutorial, just that I used a Multi-Regional bucket. But that can’t be the problem. To me it looks like a bug in the software.

    #1083
    Avatar photo[anonymous]

    Could you go to Tools -> Log viewer and check connection-* files?

    #1084
    Avatar photo[anonymous]

    Ok, I found these two errors below, other such files are empty.

    Is this it? Object policies are disabled? I can’t really find the relevant part of the tutorial to set those… but then the current version of the Google cloud is a bit newer than the tutorial.

    [{“path”:”feed.xml”,”type”:”file”}]

    Founded 2 operations to do
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – -ERROR UPLOAD FILE – – –
    feed.xml
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – – – – – – – – – – – – –
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – -ERROR UPLOAD FILE – – –
    feed.xml
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – – – – – – – – – – – – –
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – -ERROR UPLOAD FILE – – –
    feed.xml
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – – – – – – – – – – – – –
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – -ERROR UPLOAD FILE – – –
    feed.xml
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – – – – – – – – – – – – –
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – -ERROR UPLOAD FILE – – –
    feed.xml
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – – – – – – – – – – – – –
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – -ERROR UPLOAD FILE – – –
    feed.xml
    ApiError: Cannot use ACL API to set object policy when object policies are disabled.
    – – – – – – – – – – – – – –
    UPL HARD ERR …/Publii/sites/…/output/feed.xml -> feed.xml
    -> files.publii.json

    #1085
    Avatar photo[anonymous]

    Ok, after changing the bucket to “fine-grained” permissions, I am one step further, it uploads something now.

    But now the CSS assets are missing, with very visible effects…

    Thanks for the help so far, btw.

    #1086
    Avatar photo[anonymous]

    Please check if the CSS files are on your bucket. If yes, then I suppose that your domain is wrongly configured under server settings.

    #1087
    Avatar photo[anonymous]

    No, the ‘assets’ folder is missing entirely. I have ‘authors’ and ‘amp’ though.

    #1088
    Avatar photo[anonymous]

    Ok, deleting everything and re-synching did the trick. Seems to be complete now. Thanks. Case closed.