Fresh install:
Clone the master git
Change needed values in the docker-compose.yml:
ports: 9000
ALLOWED_HOSTNAMES=[the ones I need]
Timezone: America/New_York
Force https: true
First Issue the readme file says to change the FORCE_HTTPS=false to FORCE_HTTPS=1 That does not work.
So I'm doing this because I'm putting this behind my own NPM setup. Everything is set up there. I get everything working there. We look good. I change my employee information. I setup a customer. I create an item. I make a sale to my customer. All is well.
I attempt to setup email. SMTP set for my gmail account I want to use. Everything is setup the way google tells me to set it up. Error on the screen when I say to send the receipt via email. Look for logs, nothing. I bring down the container and bring it back up just in case something needed to refresh or who knows what and boom, anywhere that I had information: mostly customers, items, and sales all get an error.
I moved to development so I could see the error and it is related to this:
SYSTEMPATH/Encryption/Encryption.php at line 133
126 }
127
128 if (! in_array($this->driver, $this->drivers, true)) {
129 throw EncryptionException::forUnKnownHandler($this->driver);
130 }
131
132 if (empty($this->key)) {
133 throw EncryptionException::forNeedsStarterKey();
134 }
135
136 $this->hmacKey = bin2hex(\hash_hkdf($this->digest, $this->key));
137
138 $handlerName = 'CodeIgniter\Encryption\Handlers\' . $this->driver . 'Handler';
139 $this->encrypter = new $handlerName($config);
140
I have been troubleshooting with ChatGPT to try to find what is not working or what may be missing and so far I have created a key and everything can see the key but the key does not seem to be coming into the /app/.env where it wants it to go.
Not sure what to do at this point in time. I can provide information as I continue to look through this. I would believe this is not expected behavior.
Fresh install:
Clone the master git
Change needed values in the docker-compose.yml:
ports: 9000
ALLOWED_HOSTNAMES=[the ones I need]
Timezone: America/New_York
Force https: true
First Issue the readme file says to change the FORCE_HTTPS=false to FORCE_HTTPS=1 That does not work.
So I'm doing this because I'm putting this behind my own NPM setup. Everything is set up there. I get everything working there. We look good. I change my employee information. I setup a customer. I create an item. I make a sale to my customer. All is well.
I attempt to setup email. SMTP set for my gmail account I want to use. Everything is setup the way google tells me to set it up. Error on the screen when I say to send the receipt via email. Look for logs, nothing. I bring down the container and bring it back up just in case something needed to refresh or who knows what and boom, anywhere that I had information: mostly customers, items, and sales all get an error.
I moved to development so I could see the error and it is related to this:
SYSTEMPATH/Encryption/Encryption.php at line 133
126 }
127
128 if (! in_array($this->driver, $this->drivers, true)) {
129 throw EncryptionException::forUnKnownHandler($this->driver);
130 }
131
132 if (empty($this->key)) {
133 throw EncryptionException::forNeedsStarterKey();
134 }
135
136 $this->hmacKey = bin2hex(\hash_hkdf($this->digest, $this->key));
137
138 $handlerName = 'CodeIgniter\Encryption\Handlers\' . $this->driver . 'Handler';
139 $this->encrypter = new $handlerName($config);
140
I have been troubleshooting with ChatGPT to try to find what is not working or what may be missing and so far I have created a key and everything can see the key but the key does not seem to be coming into the /app/.env where it wants it to go.
Not sure what to do at this point in time. I can provide information as I continue to look through this. I would believe this is not expected behavior.