I tried Nextcloud a while back and was not impressed - I had issues withe the speed of the Windows sync that were determined to be “normal” with no roadmap to getting fixed. I’m now planning to move off Windows desktop so that won’t be an issue - so I thought I’d try again.

I went to nextcloud.com, clicked on Download-> Nextcloud server -> All-in-one -> Docker image - Setup AIO. This took me to the github README at Docker section. I’m already running docker for other things so I read the instructions, setup a new filesystem for my data directory and ran the suggested docker command with an appropriate “–env NEXTCLOUD_DATADIR=”. I’m then left with a terminal running docker in the foreground - not a great way to run a background server but ok, I’ve been around for a while and can figure out how to make it autostart in the background ongoing. So I move on to the next step - open my browser at the appropriate URL and I’m presented with a simple page asking me to “Log in using your Nextcloud AIO passphrase:”. I don’t have a Nextcloud AIO passphrase and nothing I’ve read so far has mentioned it. When I search for it I get some results on how to reset it, but not much help. I could probably figure that out too, but after reading some more I found that Nextcloud requires a public hostname and can’t work with a local name or IP address. I’m already running my home LAN with OpenVPN and access it from anywhere as “local” - I don’t really want to create a new path into my home network just for Nextcloud.

I’m sorry - I know this sounds like a disgruntled rant and I guess it is. I just want to check that I’m not missing obvious things before I give up again. All I want is a simple file sync setup like onedrive but without the microsoft.

  • Grumuk@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    Honestly I hate all these file sharing self hosting things. Looking at you nextcloud owncloud syncthing seafile etc. They all suck. All I want is NFS support in android, that’s my only pain point accessing my files from anywhere from my home network. I can already VPN/wireguard into my network from anywhere, but I can’t grab an ebook or mp3s off my NFS server from my phone or tablet, I have to have some other dumb infrastructure for it. Just (#@$^* put NFS in android already!!!

    /endrant

    • ms.lane@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      NFS seems a poor choice for mobile when simply losing the link will cause end user troubles.

      I hard dropped it years ago when a momentarily dropped link would mean you needed to reboot the client machine or you’d lock up for minutes at a time trying to poll the mounted directory. (which, when pinned in a gui file manager, meant every time I opened the file manager or a save dialog box, my entire system would just lock up for minutes at a time)

      I use an unholy combination of smb and sshfs now, since they can fail gracefully where NFS just can’t.

    • sem@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      I could never figure out NFS … ( it only works with unix usernames??) But since I have smb servers I can use that with Android

    • Great Blue Heron@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      Yes! There used to be a little utility that could map a SMB share in Android, but that got killed years ago.

  • Shady_Shiroe@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    Yeah setting it up the way you want is a pain, but I like it mainly for backing up photos from my phone automatically, as well as, syncing podcasts and music between devices since I moved away from Spotify and start using things like AntennaPod and Gramophone

    I got 20TB in my server, might as well use it.

  • paperd@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    If you want to self host your contacts and calendars and have multiple users, I still don’t think there is anything better. I hope Open Cloud gets there eventually, but right now its only the beginning.

    • Great Blue Heron@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      Use docker or podman compose https://hub.docker.com/_/nextcloud/

      I could do that - I guess I was just pointing out that someone coming to Nextcloud and following the install instructions does not have a great experience.

      Nextcloud does not need a domain. Ip is fine.

      So, their documentation is wrong?

      https://github.com/nextcloud/all-in-one?tab=readme-ov-file#can-i-use-an-ip-address-for-nextcloud-instead-of-a-domain

      Again - not a great experience for a first time user.

      • enemenemu@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 months ago

        Nextcloud wants you to buy their stuff.

        If you want to selfhost you have to read “everything” and know what you do.

        I have no idea about that all in one setup. But yes, the sentence “nextcloud can not be reached via IP” is wrong

    • Infernal_pizza@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      Does it need to be an external IP? I was going to look into setting it up soon but if that’s the case I think I’ll just stick with SMB shares or maybe try syncthing

      • enemenemu@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        8 months ago

        No

        No internal domain could connect to anything if it wasn’t resolved for an ip.

        Local IPv4 work. Global ipv4 work. Ipv6 works. Mesh vpn ips work. Any ip works.

        You may have to adjust the config.php (iirc) to add the ip/domain to trusted domains

  • troed@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I went from Seafile to Nextcloud with family file sharing as the primary usage. I’m using the AIO docker installation without issues.

    This might not help, but I never experienced the issues you had.

    (I moved away from Seafile due to - in my opinion - it dying a slow death with less and less support)

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    I also had bad luck with nextcloud, so recently I’ve set up SFTPgo and it works rather well and it’s only for files. You can either download and upload the files through the WebUI or you can mount them over the network to your OS.

    https://github.com/drakkan/sftpgo

  • SK@utsukta.org
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Nextcloud AIO has an option to skip domain check. the github README hasinstructions. And i love nextcloud because it integrates many features in one, file sharing, office collaboration, chat, rss reader, mailbox, photos, calendar, address-book, etc.

    I have two instances running, one public and one completely local. And having a domain is just convenient but not necessary.

    • Great Blue Heron@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      So, use something else

      That’s why I’m here - looking for suggestions

      like Seafile.

      I’ll have another look - you’re not the only person to suggest it. My recollection is that it seemed to be old and not really maintained.

      • Voroxpete@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 months ago

        I’ve been running Seafile for over ten years. They released version 12.0 just last month. I’m really not sure why people have this impression that it’s not maintained.

        Seafile updates slowly because it’s very much intended as an enterprise product. It has minimal bells and whistles, but the core functionality is reliable and works well. It’s more of a BlackBerry than an iPhone.

        In the side by side tests I’ve seen it syncs a lot faster than Nextcloud. I keep my entire documents, downloads and picture folders synced there across three different machines, nearly 300GB of data in total, and I can wipe my laptop and sync all my files back in under and hour. File transfers basically cap out at network speed, even with large numbers of small files. I’ve used the desktop client, the drive client and the mobile client and never had any complaints with any of them.

        Sidenote, if you create an account on their site they’ll give you a pro license for up to three users, free forever.

        The documentation is a bit of a beast, but worth reading thoroughly. Setup is a little fiddly compared to Nextcloud (that’s a major turn off for a lot of people, understandably so). If you have questions message me and I’ll try to help. If you go with the free pro license, be sure to enable offline garbage collection, it’ll help keep your storage use under control.

        Anyway, I really like it, works well for me. Definitely worth trying out.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    There’s a lot of stuff going on here, so let me break down your post for each issue:

    1. You need to understand the difference between a docker run command, and detaching to run a container in the background. Just running it with ‘run’ keeps it in the foreground.

    2. For the passphrase issue: https://github.com/nextcloud/all-in-one/discussions/1786

    3. Lastly, if you’re not family with containers, and this is a single purpose machine, you’d be better off just running the bare project on the host. If there’s no need for containerization, just skip it.

    • Great Blue Heron@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      You need to understand the difference between a docker run command, and detaching to run a container in the background. Just running it with ‘run’ keeps it in the foreground.

      Yes, I understand this. I was just highlighting that it’s not a great experience for a new user to follow the instructions to setup a server and be left with it running in the foreground.

      For the passphrase issue: https://github.com/nextcloud/all-in-one/discussions/1786

      Thanks! This should get me past my current hurdle so I can do some more testing. Again - not a great experience to have to come to a forum to get help to find a passphrase. I’m pretty sure I didn’t miss any steps?

      Lastly, if you’re not familiar with containers, and this is a single purpose machine, you’d be better off just running the bare project on the host. If there’s no need for containerization, just skip it.

      I’m familiar with containers, but think they’re overused. Stupid little things that are a single Python script (for example) shipping as a Docker image! But, I thought Nextcloud was complex enough to be worthy of a container? This is not a single purpose machine, but I’m an old, retired, sysadmin - I have no problem running a few different servers on the same host.

      Are you referring to the “Archive” Community Project installation method?

  • rtxn@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    8 months ago

    I’ve never used the AIO image. I’ve heard it’s weird. This is my compose file for the community image:

    compose.yaml
    volumes:
      db:
    
    services:
      db:
        image: mariadb:10.6
        restart: always
        command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
        volumes:
          - db:/var/lib/mysql
        secrets:
          - mysql_root_password
          - mysql_nextcloud_password
        environment:
          - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql_root_password
          - MYSQL_PASSWORD_FILE=/run/secrets/mysql_nextcloud_password
          - MYSQL_DATABASE=nextcloud
          - MYSQL_USER=nextcloud
    
      nextcloud:
        image: nextcloud
        restart: always
        ports:
          - 8080:80
        depends_on:
          - db
        links:
          - db
        volumes:
          - /var/www/html:/var/www/html
          - /srv/data:/srv/data
        secrets:
          - mysql_nextcloud_password
        environment:
          - MYSQL_PASSWORD_FILE=/run/secrets/mysql_nextcloud_password
          - MYSQL_DATABASE=nextcloud
          - MYSQL_USER=nextcloud
          - MYSQL_HOST=db
    
    secrets:
      mysql_root_password:
        file: ./secrets/mysql_root_password.txt
      mysql_nextcloud_password:
        file: ./secrets/mysql_nextcloud_password.txt
    

    You can access it on port 8080 and perform the initial setup manually. For the database server address, use the db hostname. You’ll have to use a reverse proxy for HTTPS.

    You could also try OpenCloud, which is a Go rewrite of ownCloud.

    • Great Blue Heron@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      I’ve never used the AIO image. I’ve heard it’s weird.

      It does seem to be. So, I find it weird that the “core” documentation leads a new user to installing AIO.

      You could also try OpenCloud, which is a Go rewrite of ownCloud.

      Sounds interesting - thanks.

    • JASN_DE@feddit.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      You could also try OpenCloud, which is a Go rewrite of ownCloud.

      A fork of the internal Owncloud Go rewrite.

  • JASN_DE@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    AIO

    Yeah, that one is basically a take-it-or-leave-it approach. It’s a lot easier to customize when running your own Docker stack. It grew over the years and the team tries to sell it as an all-in-one SharePoint replacement (which it can be), but that also means it turned into an even more convoluted system.

    I was looking into alternatives earlier this year, maybe one of them could be a solution for you:

    • Owncloud infinite scale
    • opencloud.eu (fork of ocis)
    • syncthing (very good, depending on what exactly you’re looking for)
    • Pydio Cells

    There are others, or servers like WebDAV itself.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      Some notes:

      • syncthing - a little complex, and the file format isn’t flat files, but they have a FUSE driver you can use if you want “flat” files; it’s wicked fast at syncing data
      • OCIS/OpenCloud - default file format isn’t flat, but there is an experimental POSIX driver to get that flat file layout, in case you prefer that for backups
      • Pydio - don’t know much about it, but it seems designed for large, clustered deployments

      I’m playing with OCIS/OpenCloud and it seems like a good fit. I’m mostly holding off until I can figure out which to use (leaning toward OpenCloud).

  • non_burglar@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    There are a number of ways to install nextcloud, and docker is only one of those.

    Yes, NC isn’t ideal in many ways, but it shouldn’t be as painful as you’re describing to run it.