2.0.2 Release Available

OpenDocMan 2.0.2 has been released.

this is the first update seen in many years - so Yay! I have attempted to follow the directions in the readme that tells how to set up via docker. I get to the point where I can bring up the web login page… and it promptly tells me that it cant find my datadir. I have not been successful in getting that resolved by following the directions or searching the web. How do I get this working?

Ok, redid the whole install using quick start directions and using docker compose vs make, here are my steps. End result - getting token error, ODM doesnt work. Is something missing from the quickstart? Did I miss something in the quickstart?

OpenDocMan Environment Secrets Generator
=========================================

Generating secure passwords and secrets...

Please provide some basic configuration:

Database name [opendocman]:
Database username [opendocman]:
Application hostname [odm.local]: <ip address>
HTTP port [8080]:
HTTPS port [443]:
Database external port [3306]:
Email address for notifications [admin@<ip address>]:
Timezone [UTC]:

Do you want to use custom admin password? (y/n) [n]: y
Enter admin password (min 8 characters):
Confirm admin password:

✓ .env file created successfully!

Generated Configuration Summary:
===============================
Database Name: opendocman
Database User: opendocman
Database Password: [Generated - 24 chars]
Root Password: [Generated - 32 chars]
Admin Password: [Generated/Custom - 10 chars]
Session Secret: [Generated - 64 chars]
Hostname: <ip address>
HTTP Port: 8080
HTTPS Port: 443
Database Port: 3306
Email: admin@<ip address>
Timezone: UTC

Important Notes:
• Your .env file contains sensitive information - do not commit it to version control
• Make sure to add .env to your .gitignore file
• Keep a secure backup of your .env file
• The admin username will be 'admin' with the generated/custom password

Next Steps:
1. Review and customize additional settings in .env if needed
2. Run: docker-compose up -d --build
3. Access your application at: http://localhost:8080
4. Login with username: admin and your generated password

Setup complete! 🚀

==========================

Went to http://<ip addr of vm>, go this (normal so far):

Welcome to OpenDocMan. Before getting started, we need some information on the database. You will need to know the following items before proceeding.

    Database name
    Database username
    Database password
    Database host
    Table prefix (if you want to run more than one OpenDocMan in a single database)

You will also need to create a directory (your "dataDir") where you plan to store your uploaded files on the server. This directory must be writable by the web server but preferably NOT inside your public html folder. The main reason for locating the folder outside or your web document root is so that people won't be able to guess at a URL to directly access your files, bypassing the access restrictions that OpenDocMan puts in place.

You can update your web server configuration file to prevent visitors from browsing your files directly.

<Directory "/path/to/your/documents/dataDir">
  Deny all
</Directory>

Or For newer version of apache

<Directory "/path/to/your/documents/dataDir">
  Deny From all
</Directory>

Or don't put your dataDir directory in the web space at all.
Or in a .htaccess file in the dataDir directory:

order allow,deny
deny from all

If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open config-sample.php in a text editor, fill in your information, and save it as configs/config.php and import the database.sql file into your database.
 
clicked the "lets go" button.

===============================

got screen with db name, pw, etc.

db name: opendocman
username: opendocman
password: <pw>
db host: removed "db", entered vm IP, port
table prefix: odm_
admin pw:<pw>
data dir: /var/www/document_repository, verified to exist via shell on docker image.

clicked on submit

====================================

get the "run install button", all looks ok so far.  clicked it.

======================================

get the ODM installer/updater tool.  

Link for directions.  clicking it results in: 404 page not found

msg about backing up data.  no data to backup, fresh install.  

Clicked: Click here to set up db for v2.0.2 release of ODM

get: are you sur prompt, only use this for fresh install (this is fresh install)

clicked ok

Get: checking..., installing..., db created.  Installation complete msg.  

Clicked: configure site settings button

Get login screen

Logged in (firefox browser) with username, pw that was set up.

get: security token validation failed.  Please try again.

Tried again with chrome, same result.

Did a: make logs  - but nothing displayed.

Make sure your config.php has your hostname as IPADDR:PORT (8080?)

looking at the config.php file, I see the db name, username, pw and db IP:PORT (3306) info. I dont see anything for port 8080 nor anything where that would be set in the config.php file.

    define('APP_DB_NAME', getenv('APP_DB_NAME') ? getenv('APP_DB_NAME') : '<db is here>');

    /** MySQL database username */
    define('APP_DB_USER', getenv('APP_DB_USER') ? getenv('APP_DB_USER') : '<username is here>');

    /** MySQL database password */
    define('APP_DB_PASS', getenv('APP_DB_PASS') ? getenv('APP_DB_PASS') : '<pw is here>');

    /** MySQL hostname */
    /* The MySQL server. It can also include a port number. e.g. "hostname;port=3306" or a path to a
     * local socket e.g. ":/path/to/socket" for the localhost.  */
    define('APP_DB_HOST', getenv('APP_DB_HOST') ? getenv('APP_DB_HOST') : '<ip is here>;port=3306');

if I go to http:// < my ip is here > :8080, I do get the login page. When I enter the username/pw, thats when I get: Security token validation failed. Please try again.