Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Radicale
  3. Versioning Radicale data with git?

Versioning Radicale data with git?

Scheduled Pinned Locked Moved Radicale
1 Posts 1 Posters 562 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lehrblogger
    wrote on last edited by
    #1

    The Radicale documentation describes how to use git to track changes to its calendars and address books. I realize that using this functionality would require forking the Cloudron Radicale app so that I could modify the config file, but my use case is actually somewhat different. Instead, I was hoping to use the Radicale app's cron settings to periodically run a git pull for changes made elsewhere, overwriting changes made by my WebDAV clients.

    In either case, I need a git repository initialized inside Radicale's data folder. I ran git init in /app/data/collections in the container, but subsequent commands fail with this error:

    root@[app id]:/app/data/collections# git status
    fatal: detected dubious ownership in repository at '/app/data/collections'
    To add an exception for this directory, call:
    
            git config --global --add safe.directory /app/data/collections
    root@[app id]:/app/data/collections# git config --global --add safe.directory /app/data/collections
    error: could not lock config file /root/.gitconfig: Read-only file system
    root@[app id]:/app/data/collections# git config --system --add safe.directory /app/data/collections
    error: could not lock config file /etc/gitconfig: Read-only file system
    

    I don't really want to start messing with file permissions anywhere, but then this fails too, even though it is definitely a git repository:

    root@[app id]:/app/data/collections#  git config  --local -l
    fatal: --local can only be used inside a git repository
    

    Setting the flag just for that one command doesn't work either:

    root@[app id]:/app/data/collections# git -c safe.directory=/app/data/collections status
    fatal: detected dubious ownership in repository at '/app/data/collections'
    To add an exception for this directory, call:
    
            git config --global --add safe.directory /app/data/collections
    

    I was able to get everything working by logging into the host :

    root@[host]:/# cd /home/yellowtent/appsdata/[app id]/data/collections
    root@[host]:/home/yellowtent/appsdata/[app id]/data/collections# git status
    On branch main
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
    	[collection id]
    nothing added to commit but untracked files present (use "git add" to track)
    

    So I think I have a path forward, even though it's less than ideal. I'm just starting out with Cloudron though — is there anything I'm missing?

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Bookmarks
    • Search