I tried to upload my Magento 2 module in Magento Marketplace while uploading the file, there was suddenly error came up and stopped to proceed.

Can anyone help with the error?


"Failed to validate composer.json - demo/registration.php file is missing.,demo/etc/module.xml file is missing."

I think I'm missing something or my extension file structure is not good. I've added composer.json on the root directory and in my module, there are five submodules.

My extension file structure is below: enter image description here

  • Can you tell me from which directory you can create package? Jul 14, 2020 at 13:50
  • I created demo directory package and tried to upload it on the marketplace. Jul 14, 2020 at 14:10
  • Either you need to create from the Activation folder or sub folder like block, controller etc. Jul 14, 2020 at 14:15
  • Yeah, I tried with activation and I'm able to upload it but as per our need, we have to upload all submodule in a single package. Is there any way to upload the whole project in a single package, and do we need to change the folder and file structure? Jul 14, 2020 at 14:41
  • You need to submit another package as shared one and then make main package with that one. Jul 15, 2020 at 4:40

1 Answer 1


Hello @Ankit Singh you have solved your issues. please share with me.

I have same issue. can You confirm me? actually path of composer.json file I have composer.json file path >> app>code>vendor>module>composer.json I had uploaded zip file path >> vendor.zip>vendor>module>composer.json and other module file. I have error Failed to open file composer.json. Please verify the archive. Please help.

composer.json file

    "name": "renton/connector",
    "description": "Renton Connector (Ebay tec.)",
    "version": "1.0.10",
    "type": "magento2-module",
    "license": [
    "require": {
         "php": "~7.3.0||~7.4.0",
        "magento/framework": "*"
    "autoload": {
        "files": [
        "psr-4": {
            "Renton\\Connector\\": ""
    "minimum-stability": "dev",
    "prefer-stable": true

Please help

this is my file structure
enter image description here enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.