• Resolved tangurin

    (@tangurin)


    Hi,

    The plugin is activated, the bucket name and json token is there but I get:
    “Unable to create directory 06. Is its parent directory writable by the server?”

    I get that message when I am trying to upload a file.

    I have “Fine grained” bucket permissions (Object level)

    ### Server
    
    Server architecture: Linux 6.5.0-35-generic aarch64
    Web server: Apache/2.4.59 (Debian)
    MySQL version: 11.3.2-MariaDB-1:11.3.2+maria~ubu2204
    PHP Version: 8.2.19
    PHP Memory Limit: 2048M
    PHP Max Input Vars: 10000
    PHP Max Post Size: 1024M
    PHP Time Limit: 30
    Max Upload Size: 256M
    Allow URL-aware fopen Wrappers: No
    Loaded Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, hash, iconv, json, mbstring, SPL, session, PDO, pdo_sqlite, standard, posix, random, Reflection, Phar, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, bcmath, exif, gd, imagick, intl, mysqli, sodium, zip, Zend OPcache
    
    ### WordPress
    
    Version: 6.5.4
    Multisite: No
    Memory Limit: 40M
    Total Attachments: 6422
    Image Sizes: thumbnail, medium, medium_large, large, 1536x1536, 2048x2048, logo, small, medium-large, gallery, full-width, 16-9, 16-9-2x, square, post-thumbnail
    Theme: Theme 2019
    Active Plugins: ACF Content Analysis for Yoast SEO 3.1, Add From Server 3.4.5, Advanced Custom Fields PRO 6.3.0.1, Akamai for WordPress 0.6.0, Classic Editor 1.6.3, Go Live Update Urls 6.7.3, Redirection 5.4.2, Simple Custom Post Order 2.5.7, Single Sign-on with Azure Active Directory 0.7.0, WP-Stateless 4.0.3, Yoast Duplicate Post 4.5, Yoast SEO 22.8
    
    ### WP-Stateless
    
    Version: 4.0.3
    Database Version: 1.0
    Mode: Stateless (Constant)
    File URL Replacement: Disabled
    Supported File Types: jpg jpeg png gif pdf
    Bucket: Set (Constant)
    Bucket Accessible: Yes
    Service Account JSON: Set
    Cache-Control: Default: public, max-age=36000, must-revalidate
    Delete GCS File: Enable
    Folder: %date_year/date_month%
    Domain: Not set
    Cache-Busting: Enable
    Dynamic Image Support: Disable
    Use Post Meta: Disable
    Total Files: 0
    Total File Sizes: 0
    Compatibility Files: 0

    Any idea of what the problem is?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Oleksii Bolhunovskyi

    (@obolgun)

    Hello @tangurin,

    Could you please check which permissions does your Service Account have?
    Try to set it to Storage Admin (if it does not have it already) and check if that helps.

    Thanks!

    Thread Starter tangurin

    (@tangurin)

    Hello @obolgun

    For testing I added the “wp offload media lite” plugin and it works when I use that, which give me the indication the service account and permissions is correct. The service account has the storage admin role.

    Plugin Author Oleksii Bolhunovskyi

    (@obolgun)

    @tangurin, thanks for the provided info.
    I can see that Allow URL-aware fopen Wrappers is “No” in your case.
    This is required for Stateless mode and most likely is the reason of the issue.

    Please enable allow_url_fopen if this is possible on your hosting. Otherwise I’m afraid Stateless mode will not work for you.

    Thread Starter tangurin

    (@tangurin)

    Thank you,

    That was the problem ⭐

    Plugin Author Oleksii Bolhunovskyi

    (@obolgun)

    @tangurin thanks for letting us know!
    We are glad to help you!

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.