Install & Build ospos 3,4 Manual – PLEASE help needed #4088
Replies: 4 comments 3 replies
-
|
Hi you can join the gitter discussion if you like, it might be quicker to discuss issues directly there. I thought the build instructions were quite complete. The .env file is not there indeed it needs to be added manually I believe. The snag you hit is probably the encryption key that is not filed in .env. Perhaps we should describe this as well but typically I do get a clear error message. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Encription key. env file. public directory: |
Beta Was this translation helpful? Give feedback.
-
|
I tried copying a local .env file into the ospos dir, together with spark and preload.php. php spark serveI get the error below; so it seems that just copying does NOT work .... : giuliano@ospos:/var/www/html$ php spark serve
{
"title": "CodeIgniter\\Cache\\Exceptions\\CacheException",
"type": "CodeIgniter\\Cache\\Exceptions\\CacheException",
"code": 500,
"message": "Cache unable to write to \"/var/www/html/writable/cache/\".",
"file": "/var/www/html/vendor/codeigniter4/framework/system/Cache/Handlers/FileHandler.php",
"line": 68,
"trace": [
{
"file": "/var/www/html/vendor/codeigniter4/framework/system/Cache/Handlers/FileHandler.php",
"line": 68,
"function": "forUnableToWrite",
"class": "CodeIgniter\\Cache\\Exceptions\\CacheException",
"type": "::"
},Following CI Encryption Service |
Beta Was this translation helpful? Give feedback.
-
.enf fileDigging in writable/logs, CRITICAL - 2024-10-06 18:46:39 --> ErrorException: copy(/var/www/html/.env): Failed to open stream: No such file or directory
[Method: POST, Route: login]
in APPPATH/Helpers/security_helper.php on line 33.
1 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler()
2 APPPATH/Helpers/security_helper.php(33): copy()
3 APPPATH/Database/Migrations/20220127000000_convert_to_ci4.php(80): check_encryption()
4 APPPATH/Database/Migrations/20220127000000_convert_to_ci4.php(37): App\Database\Migrations\Convert_to_ci4->convert_ci3_encrypted_data()
5 SYSTEMPATH/Database/MigrationRunner.php(867): App\Database\Migrations\Convert_to_ci4->up()
6 SYSTEMPATH/Database/MigrationRunner.php(183): CodeIgniter\Database\MigrationRunner->migrate()
7 APPPATH/Controllers/Login.php(71): CodeIgniter\Database\MigrationRunner->latest()
8 SYSTEMPATH/CodeIgniter.php(933): App\Controllers\Login->index()
9 SYSTEMPATH/CodeIgniter.php(509): CodeIgniter\CodeIgniter->runController()
10 SYSTEMPATH/CodeIgniter.php(355): CodeIgniter\CodeIgniter->handleRequest()
11 SYSTEMPATH/Boot.php(312): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH/Boot.php(67): CodeIgniter\Boot::runCodeIgniter()
13 FCPATH/index.php(56): CodeIgniter\Boot::bootWeb()Even more strange, I:
Well .... I get this database connection error Displayed at 22:50:29pm — PHP: 8.3.6 — CodeIgniter: 4.5.1 -- Environment: development
CodeIgniter\Database\Exceptions\DatabaseException
Unable to connect to the database.
Main connection [MySQLi]: Access denied for user '****'@'localhost' (using password: YES) [search →](https://www.duckduckgo.com/?q=CodeIgniter%5CDatabase%5CExceptions%5CDatabaseException+Unable+to+connect+to+the+database.%0AMain+connection+%5BMySQLi%5D%3A+Access+denied+for+user+%40+%28using+password%3A+YES%29)
SYSTEMPATH/Database/BaseConnection.php at line 457Any Idea on where to dig for the solution of the problem ? BR |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I’m trying to jot down a complete instruction on howto install and Build OsPOS 3,4.
The actual build.md seems to me not updated; and some install part are considered obvious (but not for everyone!!)
I made a fist install&buiold.MD file here.
https://github.com/Giuliano69/opensourcepos/blob/master/ospos%203.4%20install%20%26%20build.md
But it does NOT produce a complete working installation yet :-((
When finisched, Last step would be to create an ansible script to make OsPOS install as simple as a Docker container.
OPEN PROBLEMS:
-trying to get The /public page does NOT WORK (CI4 shows a “404 Sorry! Cannot seem to find the page you were looking for. “ Page)
Instead, logging to localhost give the Login page (!!)
But WARNS about: “Welcome to OSPOS! A database migration to 20240630000001 will start after login. “
Logging with normal user/password (admin-pointofsale), gives “Whoops!
We seem to have hit a snag. Please try again later…”
I noticed that In the master branch there is no .env file NOR a preload.php file NOR a spark file.
So I cannot run a spark server and try to debut it to find where it “hit the snag”
Kindly ASK
Any help would be appreciated !!!
Giuliano
PPS
Is there a chat where we can meet to talk about it ?
BR
Beta Was this translation helpful? Give feedback.
All reactions