Skip to content

Regarding upgrade docs #4748

Closed
Closed

Description

@prbt2016

Hello @jekkos ,

I wanted to upgrade Open Source Point of Sale from 3.4.1 to 3.4.2 .

May I know how I am supposed to do the same? .

These upgrade docs seem old https://github.com/opensourcepos/opensourcepos/blob/3.4.2/UPGRADE.md.

I checked with release note for 3.4.1 and found this .

Image

Unzip and upload Open Source Point of Sale files to the web-server.

Does this mean overwriting of files from 3.4.2 on top of 3.4.1 ?.

If yes then what files to safeguard?.

Kindly let me know the correct method to perform upgrade.

Also could you please update the upgrade docs https://github.com/opensourcepos/opensourcepos/blob/3.4.2/UPGRADE.md

Regards.

Activity

  1. self-assigned this
    on Oct 12, 2026
  2. jekkos commented on Oct 13, 2026

    @jekkos
    Member

    Hi @prbt2016, thanks for flagging this — the upgrade guide was indeed out of date (it still described the old pre-3.0 flow). I've opened a PR to rewrite it: #4750. In the meantime, here is the current, correct way to go from 3.4.1 to 3.4.2:

    Yes — you can upload the new 3.4.2 files on top of your existing install. Your data is not stored in the code, so an upgrade is simply: back up → replace the code → restore your files → log in.

    Files to safeguard first:

    1. Your database — the most important one. Do a full backup (e.g. mysqldump). All your business data lives here, not in the code.
    2. Your .env file (project root) — it holds your database password and your encryption.key. ⚠️ Release downloads include a fresh, default .env (pointing at localhost with the default ospos credentials). If you let it replace yours, you lose your DB password and encryption.key. So copy your current .env out of the way before overwriting, and put it back after.
    3. Your public/uploads/ folder — your product images and other uploaded files.

    Steps:

    1. Back up your database, your .env file, and your current code folder.
    2. Download 3.4.2 from the Releases page and unzip it.
    3. Replace the code with the 3.4.2 files (overwriting in place is fine).
    4. Put your original .env and public/uploads/ back in place.
    5. Log in. The first login takes a little longer because OSPOS updates the database schema automatically — you do not need to run any SQL scripts manually.

    One thing to check (production): since 3.4.2, app.allowedHostnames is required in production, otherwise the application will not start. If it is not already in your .env, add it:

    app.allowedHostnames='yourdomain.com,www.yourdomain.com'
    

    That should get you upgraded cleanly. If anything fails, temporarily enable PHP display_errors and share the exact error here and we can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions