Skip to content

Container could not initialize on a read-only file system #45

@VxDlH

Description

@VxDlH

First, thank you for your work.

A read-only file system produced these errors:

2024-12-01T23:10:11+00:00| Container started
2024-12-01T23:10:11+00:00|   OS = "Alpine Linux v3.20"
2024-12-01T23:10:11+00:00|   USER = "11000:11000"
2024-12-01T23:10:11+00:00|   JAVA version = "openjdk21-jre-headless-21.0.5_p11-r0"
2024-12-01T23:10:11+00:00|   WARNING "JD_EMAIL" not found
2024-12-01T23:10:11+00:00|   WARNING "JD_PASSWORD" not found
2024-12-01T23:10:11+00:00|   Check "JDownloader.jar"
2024-12-01T23:10:11+00:00|     Delete any existing JDownloader installation files
rm: can't remove './tmp': Read-only file system
rm: can't remove './update': Read-only file system
2024-12-01T23:10:11+00:00|     Download "https://installer.jdownloader.org/JDownloader.jar"
2024-12-01T23:10:11+00:00|     ERROR : curl exited with code "23"
2024-12-01T23:10:11+00:00|   Setup JDownloader
2024-12-01T23:10:11+00:00|     Create directory "./update/versioninfo/JD/"
2024-12-01T23:10:11+00:00|     Install "./update/versioninfo/JD/extensions.requestedinstalls.json"
2024-12-01T23:10:11+00:00|     Set JDownloader email
2024-12-01T23:10:11+00:00|     Set JDownloader password
2024-12-01T23:10:11+00:00|     Set JDownloader devicename
2024-12-01T23:10:11+00:00|   Start JDownloader
2024-12-01T23:10:11+00:00|     JDownloader started [PID=81]
2024-12-01T23:10:11+00:00|     JDownloader stopped
2024-12-01T23:10:11+00:00| Container stopped

This warning seems odd; my environment variables appear to be correctly configured.

 WARNING "JD_EMAIL" not found
 WARNING "JD_PASSWORD" not found

image

but this point is not a showstopper

elif [ -z "$JD_PASSWORD" ]; then

rm: can't remove error can be fixed by adjusting the line:

rm -f -r $JDownloaderJarFile Core.jar ./tmp ./update

by this one :

rm -f -r $JDownloaderJarFile Core.jar ./tmp/* ./update/*

This issue is optimally resolved using the ./tmp folder

Download "https://installer.jdownloader.org/JDownloader.jar"
ERROR : curl exited with code "23"

downloadFile "https://$JDownloaderJarUrl" "$JDownloaderJarFile"

by this one :

downloadFile "https://$JDownloaderJarUrl" "./tmp/$JDownloaderJarFile"
  • Generally, it is recommended to use the system's default /tmp directory for all temporary files.
  • If it needs to be emptied, it is preferable to delete /tmp/*.
  • On a read-only system, it is easier to create a mount point for /tmp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions