5nafu / docker-freenet

10 stars 6 forks source link

Doesn't seem to work, no page accessable on localhost:8888 #2

Open Qwertie- opened 3 years ago

Qwertie- commented 3 years ago

Ran the exact command in the readme. Got this output and nothing is accessible in the browser

cp: can't create '/conf/freenet.ini': Permission denied
sed: /conf/freenet.ini: No such file or directory
sed: /conf/freenet.ini: No such file or directory
sed: /conf/freenet.ini: No such file or directory
cp: can't create '/data/seednodes.fref': Permission denied
Your java executable at /usr/lib/jvm/java-1.8-openjdk/jre/bin/java seems suitable
Running Freenet 0.7...
Removed stale pid file: /fred/./Freenet.pid
Removed stale pid file2: /fred/./Freenet.pid
wrapper  | --> Wrapper Started as Console
wrapper  | Java Service Wrapper Community Edition 64-bit 3.5.20
wrapper  |   Copyright (C) 1999-2013 Tanuki Software, Ltd. All Rights Reserved.
wrapper  |     http://wrapper.tanukisoftware.com
wrapper  | 
wrapper  | Launching a JVM...
jvm 1    | setpriority() succeeded!
jvm 1    | BouncyCastle: BC version 1.59
jvm 1    | SunPKCS11-NSS: null
jvm 1    | SUN: SUN version 1.8
jvm 1    | SunJCE: SunJCE version 1.8
jvm 1    | WrapperManager: Initializing...
jvm 1    | freenet.jar built with freenet-ext.jar Build #29 rv29 running with ext build 29 rv29
jvm 1    | Creating config from /conf/freenet.ini
jvm 1    | No config file found, creating new: /conf/freenet.ini
jvm 1    | Creating logger...
jvm 1    | Set interval to 10 and multiplier to 1
jvm 1    | Starting executor...
jvm 1    | Finding old log files. New log file is /fred/logs/freenet-1484-2021-01-30-06.log.gz
jvm 1    | Using the NativeThread implementation (base nice level is 10)
jvm 1    | Created log files
jvm 1    | Updated startssl.pem so that update scripts will work
jvm 1    | Initializing Node using Freenet Build #1484 rbuild01484 and freenet-ext Build #29 rv29 with Oracle Corporation JVM version 1.8.0_111-internal running on amd64 Linux 5.10.8-100.fc32.x86_64
jvm 1    | Set fproxy max length to 2306867 and max length with progress to 57671680 = 57671680
jvm 1    | Starting FProxy on 127.0.0.1,0:0:0:0:0:0:0:1:8888
jvm 1    | SHA1: using SUN version 1.8
jvm 1    | MD5: using SUN version 1.8
jvm 1    | SHA-256: using SUN version 1.8
jvm 1    | SHA-384: using SUN version 1.8
jvm 1    | SHA-512: using SUN version 1.8
jvm 1    | AES/CTR/NOPADDING (SunJCE version 1.8): 419134ns
jvm 1    | AES/CTR/NOPADDING (BC version 1.59): 1273560ns
jvm 1    | Using JCA cipher provider: SunJCE version 1.8
jvm 1    | Trying to read master keys file...
jvm 1    | Creating new master keys file
jvm 1    | FNP port created on 0.0.0.0:3107
jvm 1    | Testnet mode DISABLED. You may have some level of anonymity. :)
jvm 1    | Note that this version of Freenet is still a very early alpha, and may well have numerous bugs and design flaws.
jvm 1    | In particular: YOU ARE WIDE OPEN TO YOUR IMMEDIATE PEERS! They can eavesdrop on your requests with relatively little difficulty at present (correlation attacks etc).
jvm 1    | Trying to read node file backup ...
jvm 1    | Creating new cryptographic keys...
jvm 1    | Creating PeerManager
jvm 1    | Memory is 455MB
jvm 1    | Setting standard 500 thread limit. This should be enough for most nodes but more memory is usually a good thing.
jvm 1    | Deleted 0 of 0 temporary files (0 non-temp files in temp directory) in 0s
jvm 1    | Starting request persistence layer without resuming ...
jvm 1    | Initializing USK Manager
jvm 1    | Loading cache of request statuses...
jvm 1    | Initializing Node Updater
jvm 1    | Max packet size: 1232
jvm 1    | Initializing Plugin Manager
jvm 1    | Node constructor completed
jvm 1    | No darknet peers file found.
jvm 1    | Starting DNSRequester
jvm 1    | Created uptime estimator, time offset is 79224 uptime at startup is 0.00
jvm 1    | Starting PacketSender
jvm 1    | Starting Ticker
jvm 1    | Using wrapper correctly: freenet.node.NodeStarter@2c891cb7
jvm 1    | Freenet 0.7.5 Build #1484 rbuild01484
jvm 1    | FNP port is on 0.0.0.0:3107
jvm 1    | Will serve freenet-ext.jar for UOM
jvm 1    | Multi-file replace: Nothing to do for wrapper-update-unix.
jvm 1    | Preloading jna-platform-4.2.2.jar for the next update...
jvm 1    | Preloading jna-platform-4.2.2.jar needed for new Freenet update 1484
jvm 1    | Preloading jna-4.2.2.jar for the next update...
jvm 1    | Preloading jna-4.2.2.jar needed for new Freenet update 1484
jvm 1    | Will serve bcprov-jdk15on-1.59.jar for UOM
jvm 1    | Starting FCP server on 127.0.0.1,0:0:0:0:0:0:0:1:9481.
jvm 1    | Extra peer data reading and processing completed
jvm 1    | Node initialization completed.
jvm 1    | Cannot store config: java.io.FileNotFoundException: /conf/freenet.ini.tmp (Permission denied)
jvm 1    | java.io.FileNotFoundException: /
thoschworks commented 3 years ago

I had the same issue here.

It is a problem with the permissions on your local machine.

The folders

~/freenet
~/freenet/conf/
~/freenet/data/

are created and owned by root. The owner of the process fred inside the container is fred (UID:GID 1000:1000) which is not allowed to write to the folders (see first line of your output).

I don't know why this happens, but it happens.

Change the ownership of the folders to 1000:1000and the issue should be solved.

@5nafu: I guess you tested with existing folders with adapted permissions?