Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Album does not get created in Google Photos library #17

Closed
apastel opened this issue May 4, 2020 · 3 comments
Closed

Album does not get created in Google Photos library #17

apastel opened this issue May 4, 2020 · 3 comments

Comments

@apastel
Copy link

apastel commented May 4, 2020

Hello, first time trying this out and I've noticed my photos are getting uploaded correctly, but a new album with the photos does not get created despite having makeAlbums enabled.

I'm running on Raspbian Buster and I've tried both the :latest and :preview tags of docker-gphotos-uploader. Let me know if this is something I should take up with the actual gphotos-uploader-cli, but I wanted to post here first in case it's an issue with the docker image.

Docker inspect output

[
    {
        "Id": "sha256:9ab43754c45118d7ac996aa0c9fd44c46e5e99b6e224641d926dd6240ed258ee",
        "RepoTags": [
            "rfgamaral/gphotos-uploader:preview"
        ],
        "RepoDigests": [
            "rfgamaral/gphotos-uploader@sha256:9d5edf4352c396ae95738b6dbc51f0d9757a427f1a5c7e34d5f55e139b56aa5e"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2020-04-12T16:25:10.130368282Z",
        "Container": "04765c1840022356218e33679b31b2d3b20d59ece20edb8229e1cd6eed9ffb45",
        "ContainerConfig": {
            "Hostname": "04765c184002",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GPU_SCHEDULE=0 */8 * * *"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) ",
                "ENTRYPOINT [\"/init\"]"
            ],
            "Image": "sha256:5f214418202c7d1e249197e54a956b3ead08d27d9902ffd2e1216247f9cbe167",
            "Volumes": {
                "/config": {},
                "/photos": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/init"
            ],
            "OnBuild": null,
            "Labels": {
                "maintainer": "master@ricardoamaral.net",
                "org.label-schema.build-date": "2020-04-12T16:23:28.978Z",
                "org.label-schema.description": "Mass upload media folders to your Google Photos account with this Docker image.",
                "org.label-schema.name": "rfgamaral/gphotos-uploader",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.vcs-ref": "0fa16ed",
                "org.label-schema.vcs-url": "https://github.com/rfgamaral/docker-gphotos-uploader.git"
            }
        },
        "DockerVersion": "3.0.11+azure",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GPU_SCHEDULE=0 */8 * * *"
            ],
            "Cmd": null,
            "Image": "sha256:5f214418202c7d1e249197e54a956b3ead08d27d9902ffd2e1216247f9cbe167",
            "Volumes": {
                "/config": {},
                "/photos": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/init"
            ],
            "OnBuild": null,
            "Labels": {
                "maintainer": "master@ricardoamaral.net",
                "org.label-schema.build-date": "2020-04-12T16:23:28.978Z",
                "org.label-schema.description": "Mass upload media folders to your Google Photos account with this Docker image.",
                "org.label-schema.name": "rfgamaral/gphotos-uploader",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.vcs-ref": "0fa16ed",
                "org.label-schema.vcs-url": "https://github.com/rfgamaral/docker-gphotos-uploader.git"
            }
        },
        "Architecture": "arm",
        "Os": "linux",
        "Size": 35469705,
        "VirtualSize": 35469705,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/8f48e5fc17949d55932615496ee9d937bf201b9d13a6a3f8d8c3e26f99b1633b/diff:/var/lib/docker/overlay2/c36bcee1e1089c835b692c6ea2528dc309adc84ac761ac559218496c03f88185/diff:/var/lib/docker/overlay2/962be7eabef1bf6aa27aecffed74df21ddf34d38be6dc13af05ad33dc499b107/diff:/var/lib/docker/overlay2/e81974fe90cee1b40e7a2c432a888d9ab3ca660b8361f154d822aef907519e16/diff:/var/lib/docker/overlay2/da52ab70781f2bff9217e237f3b6b2032a16733606a5969b2048ef6199ba4c07/diff",
                "MergedDir": "/var/lib/docker/overlay2/ea65f110c35f4eaa3730de9c91ac6a380267b4f518f48729504c559ef99b6014/merged",
                "UpperDir": "/var/lib/docker/overlay2/ea65f110c35f4eaa3730de9c91ac6a380267b4f518f48729504c559ef99b6014/diff",
                "WorkDir": "/var/lib/docker/overlay2/ea65f110c35f4eaa3730de9c91ac6a380267b4f518f48729504c559ef99b6014/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:a6a4e2cc29605ebe999068e75d49b94ef2ad4b9564426fe4b316259dd31fcd76",
                "sha256:614eb43de3206ac7cb889d1b94c1fe7035708949b9b5ffb0ac4a2181aff4a873",
                "sha256:75a5ec1b243f8082e77e7c220cc79720a389d4d1fcae72b0bbe258a220707d81",
                "sha256:d521c6590e5199cd231ac1345bb448ce300ee7fabfd248c8fb0ef98d91c887da",
                "sha256:78cc35ee1a25c26f31ec4918a525b920693fd356fe48bcb08442f3d2063b8fed",
                "sha256:5d8a511c98f348b4ebd8cde0ea9c68be989d33ae67ac248c8e913ae21d36ebb8"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

My config file

{
  SecretsBackendType: auto,
  APIAppCredentials: {
    ClientID:     "<my_client_id>",
    ClientSecret: "<my_client_secret>",
  }
  jobs: [
    {
      account: alex.r.pastel@gmail.com
      sourceFolder: /test_photos
      makeAlbums: {
        enabled: true
        use: folderName
      }
      deleteAfterUpload: false
      uploadVideos: true
      includePatterns: []
	  excludePatterns: [ "*__id" ]
    }
  ]
}

Container creation

docker run -d --name=gphotos-uploader -p 29070:29070 -v /home/pi/photo-sync/config:/config -v /home/pi/photo-sync/test_photos/:/test_photos --restart unless-stopped rfgamaral/gphotos-uploader:preview

Command output

$ docker exec -it gphotos-uploader run
[info]   Opening browser to complete authorization.
[warn]   Browser was not detected. Complete the authorization browsing to: http://localhost:29070
[info]   Found item to upload: /test_photos/2020-04-11_21-23-11_UTC.jpg
[info]   1 files pending to be uploaded in folder '/test_photos'.
[info]   1 processed files: 1 successfully, 0 with errors

After this is done, there is no new album in my Google Photos library. I would expect there to be one titled "test_photos".

@rfgamaral
Copy link
Owner

Although the documentation doesn't clearly say that, I believe the makeAlbums option only applies to sub-folders and not the root folder.

In other words, your sourceFolder is /test_photos and this is the root folder, so it will never be created as an album. Only the folders inside the root test_photos folder will. Please try that :)

@apastel
Copy link
Author

apastel commented May 4, 2020

Wow, you're right, that was it. 🙄
Thanks. Yeah I wish the documentation made that a little more clear. Their example shows subfolders, but doesn't say what will happen if you don't have subfolders.

@rfgamaral
Copy link
Owner

Glad you got it sorted out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants