Skip to content
New issue

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

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

Already on GitHub? # to your account

Log to console option #799

Open
mrwulf opened this issue Mar 9, 2025 · 2 comments
Open

Log to console option #799

mrwulf opened this issue Mar 9, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@mrwulf
Copy link
Contributor

mrwulf commented Mar 9, 2025

I'm running my import in a kubernetes job so I dump my google takeout into an NFS share and not worry about local storage space, my workstation going to sleep, etc.

Everything works great except there isn't any output to the console. Is there a way to pipe everything that goes to the log file to the console instead? It seem like that should be the default when --no-ui is passed to the command.

I used the Dockerfile from #306 and pushed to my own github repo for the image. And kick off a k8s job like so:

apiVersion: batch/v1
kind: Job
metadata:
  name: immich-import
spec:
  template:
    spec:
      restartPolicy: OnFailure
      containers:
      - args:
        - upload
        - from-google-photos
        - --server=http://immich-server.household.svc.cluster.local:3001
        - --api-key=<redacted>
        - --include-untitled-albums=true
        - --manage-burst=Stack
        - --no-ui
        - --log-file=/takeouts/output.log.txt
        - /takeouts/takeout-*.zip
        image: ghcr.io/mrwulf/custom-images/immich-go:latest
        name: immich-import
        resources: {}
        volumeMounts:
        - mountPath: /takeouts
          name: takeouts
        workingDir: /takeouts
      volumes:
      - name: takeouts
        nfs:
          path: /mnt/user/backups/google-takeout
          server: nas.local

@simulot
Copy link
Owner

simulot commented Mar 9, 2025

then --no-ui option prevent the use of advanced terminal functionalities, like frames, pop up etc.
Log messages anyway sent to the log-file

@mrwulf
Copy link
Contributor Author

mrwulf commented Mar 10, 2025

Yes, logs would go to the console (standard out) and any configured log file.

@simulot simulot added enhancement New feature or request and removed waiting user reply labels Mar 10, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants