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

Question: How do you delete uploads where the files were accidentally removed #58

Open
jrobiii opened this issue Dec 31, 2024 · 4 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers question Further information is requested

Comments

@jrobiii
Copy link

jrobiii commented Dec 31, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  • I have created volumes in the local folder for mongo_data and uploads_data
  1. Add a new file listing and add an Icon (i.e. upload)
  2. Go to the the docker-compose uploads_folder and remove the file(s)
  3. Refresh the browser and go back to add a new file listing
  4. Observe that there is still a "placeholder" for the upload, but it is the following icon (see Screenshots)

Expected behavior
I expected that since the files no longer existed that the "My Icons" would be empty. I also could not find any way to remove previously uploads.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Container logs:
If applicable, add your container logs to better understand the problem.

Your docker-compose.yml content:
If applicable, add your docker compose to better understand the problem.

Base docker-compose.yml

services:
  traefik:
    extends:
      file: ./traefik/docker-compose.yml
      service: traefik

  astroluma:
    extends:
      file: ./astroluma/docker-compose.yml
      service: astroluma

  astroluma_mongodb:
    extends:
      file: ./astroluma/docker-compose.yml
      service: astroluma_mongodb

  n8n:
    extends:
      file: ./n8n/docker-compose.yml
      service: n8n

  sysmon:
    extends:
      file: ./sysmon/docker-compose.yml
      service: uptimekuma

networks:
  traefik_net:
    name: traefik_net
  astroluma_network:
    name: astroluma_network

astroluma/docker-compose.yml

services:
  astroluma:
    image: sanjeet990/astroluma:latest
    container_name: astroluma
    ports:
      - "8000:8000"
    environment:
      PORT: 8000
      NODE_ENV: production
      MONGODB_URI: mongodb://astroluma_mongodb:27017/astroluma
    volumes:
      - ./uploads_data:/astroluma/storage/uploads
    depends_on:
      - astroluma_mongodb
    restart: always
    networks:
      - traefik_net
      - astroluma_network
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.astroluma.rule=Host(`homepage.domain.name`)"
      - "traefik.http.routers.astroluma.entrypoints=websecure"
      - "traefik.http.routers.astroluma.tls.certresolver=letsencrypt"
      - "traefik.http.services.astroluma.loadbalancer.server.port=8000"

  astroluma_mongodb:
    image: mongo:6.0
    container_name: astroluma_mongodb
    networks:
      - astroluma_network
    ports:
      - "27017:27017"
    volumes:
      - ./mongo_data:/data/db
    restart: always

volumes:
  mongo_data:
    driver: local
  uploads_data:
    driver: local

Other details:

  • Host CPU Type [e.g. x64]: x64
  • Host OS [e.g. Ubuntu 22.04]: Ubuntu 24.04

Additional context
Add any other context about the problem here.

@jrobiii jrobiii added the bug Something isn't working label Dec 31, 2024
@Sanjeet990 Sanjeet990 added good first issue Good for newcomers question Further information is requested labels Dec 31, 2024
@Sanjeet990
Copy link
Owner

Actually it was not planned that a user might remove the icons from the volumes but at the same time I believe this is a total valid "Use case". Thank you for pointing that out!

What can you do at the moment to remove that:

Since there is no provision to remove them for now, you can use MongoDB Compass and connect to mongodb://your_ip:27017/astroluma and remove the icon entries from the icons collection.

What I can do:

I'm adding this to my backlog items. I'll address this on priority basis in the coming update, where user can directly remove the icons from the Administrative interface.

@jrobiii
Copy link
Author

jrobiii commented Dec 31, 2024

Wow! Thanks for the quick response. I'll check out MongoDB Compass. Thanks again!

@jrobiii
Copy link
Author

jrobiii commented Dec 31, 2024

That worked a charm! Thanks

@Sanjeet990
Copy link
Owner

Thank you again for confirming! This will be fixed with the next release. Thank you for trying Astroluma! ⭐

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants