EvilCartyen

joined 1 year ago
[–] EvilCartyen@feddit.dk 4 points 2 months ago

I add stuff to FAQs when I am fucking tired of answering the same old dumb questions

[–] EvilCartyen@feddit.dk 1 points 4 months ago
[–] EvilCartyen@feddit.dk 0 points 4 months ago (2 children)

I mean, yes. But on the other hand, I've removed usb-connected media without using that button thousands of times and never had an issue. I'm obviously not doing it when I am writing to or reading from the medium.

Either way, thanks again for taking the time to respond :)

[–] EvilCartyen@feddit.dk 3 points 4 months ago (1 children)

Sure, I mean I am used to reading (and writing) manuals and documentation, so I usually go that route first when I know where to look. And your answer was helpful. Anyway, what are some authoritative ressources I should consult concerning these fundamental concepts?

[–] EvilCartyen@feddit.dk 5 points 4 months ago (4 children)

Don’t do that.

Coming from non-linux, it's not usually a problem. But now I know better :)

fstab is just a config file so the computer knows what drives and storage volumes its supposed to have when it boots.

You can add and remove drives without ever editing fstab. Plugging something in should give you the option to mount it in your file explorer, and in the same place you should be able to “eject” it before disconnecting the actual cable.

I know that, but this particular drive was meant to be permanently mounted and accessible, which is why I added it to fstab. I am removing it because it's damaged and i have to replace it with something which isn't to act as a permanent drive for the server.

Thank you for your help :)

[–] EvilCartyen@feddit.dk 8 points 4 months ago (5 children)

Thanks. I don't mind reading manuals at all, but is this not a community for asking questions?

[–] EvilCartyen@feddit.dk 3 points 4 months ago* (last edited 4 months ago) (3 children)

It's mounted to /srv which is not empty, and I can also still browse some of the folders on the removed drive, which is also confusing :) I don't understand how that's even possible.

Edit: It does not show up as a drive, but the mount directory is still there with a folder structure and a single file.

Edit2: I deleted the folder which seems to have done the trick. Still confused about how and why it was still accessible......

[–] EvilCartyen@feddit.dk 2 points 4 months ago (3 children)

I figured removing it from fstab was akin to unmounting it.

[–] EvilCartyen@feddit.dk 7 points 4 months ago (5 children)

Well, I just rebooted and it's still there, which is what is confusing me :) But thanks!

So I should unmount it in other ways too?

[–] EvilCartyen@feddit.dk 5 points 4 months ago (7 children)

Yanked out the cable like a medieval surgeon ;) Anyway, since I removed it from fstab I figured it was unmounted.

 

I have very little experience with linux, so maybe this is a dumb question :)

I run Ubuntu 24.04 on a machine, and I had an old HDD in a usb-case which I mounted using fstab. Worked fine, but I decided it wasn't appropriate for my purpose and removed it (physically and from fstab).

But it still shows up in the file manager? What am I missing?

[–] EvilCartyen@feddit.dk 1 points 5 months ago (1 children)

I did go for that 😁 was a simple checkbox in the router settings.

 

So maybe I am missing something obvious, but here goes:

I've got a small server at home, and I have simply.com pointing various domains to it. Works fine, nginx routs the traffic where it needs to go.

But whenever I am at home and connected to wifi I have to use the internal address and port to reach my server, e.g. 192.168.0.192:8096 for my Jellyfin server. If I use the public URL at home, i hit the login page to my router.

This is annoying when I use apps, as I need to switch between the public URL and the internal address as I come and go from my home...

What are my options for doing something about this? I want to use the public URL at home too....

 

So I'm just getting started with selfhosting things, and I have a minor problem which I'm having some trouble solving, as I keep getting a connection refused error when trying to connect:

send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53

I run a jellyfin server on a NUC - it works well and is accessible on the private network. I want to have a public URL for this server - and other stuff, eventually.

Here's my setup

  • I have a subdomain - jellyfin.mydomain.com - pointed to the external IP for my router
  • I have the router set up to allow remote access, and port forwarding directing all port 80 traffic to my public ip > port 80 on the server
  • On my server - running ubuntu - I installed nginx
  • I used the official jellyfin nginx config for access from a subdomain
  • I edited the server_name variable to match my subdomain

Now, whenever I access the subdomain in a browser I get a 502 Bad Gateway error. The /var/lof/nginx/error.logshows:

2024/05/10 08:26:37 [error] 95335#95335: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/05/10 08:26:37 [error] 95335#95335: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/05/10 08:26:42 [error] 95335#95335: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/05/10 08:26:47 [error] 95335#95335: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/05/10 08:26:52 [error] 95335#95335: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/05/10 08:26:57 [error] 95335#95335: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/05/10 08:27:02 [error] 95335#95335: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/05/10 08:27:07 [error] 95335#95335: *69 jellyfin could not be resolved (110: Operation timed out), client: 193.29.107.173, server: jellyfin.mysubdomain.com, request: "GET /web/ HTTP/1.1", host: "jellyfin.mysubdomain.com"

I have almost no experience with networking, linux, or nginx :D So I am sure the problem is obvious to someone else....

Can you help?

view more: next ›