Bug: Missing /lib/jquery.menu-aim.js and API 404 Errors Prevent Proper Start of Puter OS #1069
Open
1 of 4 tasks
Labels
bug
Something isn't working
Issue Description
Description
I am encountering persistent issues while attempting to run Puter OS using the latest Docker image. Despite correct configurations and successful startup logs, the application does not function properly and shows a blank purple screen in the browser.
Environment
• Host: Synology NAS
• Docker Management: Portainer
• Puter OS Image: ghcr.io/heyputer/puter:latest
• Docker Compose Configuration:
Observed Issues
When accessing the /api/serverinfo endpoint, the server responds with 404 Not Found: curl -i -H "Host: 192.168.0.222" http://192.168.0.222:4100/api/serverinfo
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8
Content-Length: 11
Connection: keep-alive
Browser Console Errors: Failed to fetch server info: DOMException: XMLHttpRequest.open:
'http://api.192.168.0.222:4100/version' is not a valid URL.
The browser requests /lib/jquery.menu-aim.js, which fails with a MIME-type error: The resource at "http://192.168.0.222:4100/lib/jquery.menu-aim.js"
was blocked due to MIME type conflict ("text/html").
Attempts to locate the file inside the container show it does not exist: sudo docker exec -it puter-os find /opt/puter -name "jquery.menu-aim.js"
No results
Steps to reproduce
Observed Issues
When accessing the /api/serverinfo endpoint, the server responds with 404 Not Found: curl -i -H "Host: 192.168.0.222" http://192.168.0.222:4100/api/serverinfo
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8
Content-Length: 11
Connection: keep-alive
Browser Console Errors: Failed to fetch server info: DOMException: XMLHttpRequest.open:
'http://api.192.168.0.222:4100/version' is not a valid URL.
The browser requests /lib/jquery.menu-aim.js, which fails with a MIME-type error: The resource at "http://192.168.0.222:4100/lib/jquery.menu-aim.js"
was blocked due to MIME type conflict ("text/html").
Attempts to locate the file inside the container show it does not exist: sudo docker exec -it puter-os find /opt/puter -name "jquery.menu-aim.js"
No results
Expected behaviour
No response
Addition Information or Screenshots (if applicable)
General Behavior
• The UI only displays a blank purple screen.
• No critical errors are reported in the container logs.
Steps to Reproduce
1. Deploy Puter OS using the provided Docker Compose configuration.
2. Access the UI via http://192.168.0.222:4100.
3. Inspect the browser console and network logs for errors.
Expected Behavior
The application should load successfully with API endpoints accessible and no missing dependencies.
Additional Context
• Database initialization succeeded, and all tables exist.
• The PUBLIC_URL, ALLOWED_HOSTS, and DISABLE_HOST_CHECK are configured properly.
Logs
• Relevant Docker logs show no critical errors.
• Browser Console logs indicate issues with the /api endpoint and missing jquery.menu-aim.js.
Summary of Troubleshooting Steps Already Performed
1. Configuration Validation
• Verified and corrected config.json with proper values for PUBLIC_URL, ALLOWED_HOSTS, and DISABLE_HOST_CHECK.
• Ensured the config file is correctly mapped into the container.
2. Database Initialization
• Confirmed the SQLite database exists and contains the required tables (app_filetype_association and others).
• Checked that the database is correctly mounted into the container at /opt/puter/app/volatile/runtime/puter-database.sqlite.
3. Container and Environment Checks
• Rebuilt and restarted the container multiple times.
• Ensured permissions on volumes (config.json and database) are set correctly.
4. Network and Endpoint Verification
• Checked curl responses for the API endpoints (/api/serverinfo), which return a 404 Not Found.
• Verified that the container is listening on port 4100.
5. File and Asset Debugging
• Confirmed that /lib/jquery.menu-aim.js does not exist in the container filesystem.
• Ensured this file is not referenced in the latest GitHub repository.
6. Logs and Console Errors
• No critical errors in Docker container logs.
• Browser Console indicates 404 errors on API endpoints and missing assets.
Deployment
npm run start
)docker run
)docker-compose
)Puter version
last
Despite all the above steps, the UI remains blank (purple screen), and critical API endpoints like /api/serverinfo fail with 404 Not Found.
The text was updated successfully, but these errors were encountered: