Linux/AppImage: Snapmaker cloud login does not persist across restart
Is there an existing issue for this problem?
- [x] I have searched the existing issues
Snapmaker_Orca Version
2.4.3
Operating System (OS)
Linux
OS Version
OS: Ubuntu 25.04
Additional system information
No response
Printer
Snapmaker U1
How to reproduce
Start the AppImage on Linux.
Log in to Snapmaker cloud successfully.
Use the app normally.
Close the app normally.
Reopen the app.
Observe that the cloud login is gone
Relevant log evidence
On startup after restart, the logs show:
_getDeviceInfo: loginUser: {nickname: , email: , account: , status: offline, icon: , avatar: , token: , token_type: Bearer, userid: , uid: , id: , cellphone: }
eventId:logoutDeleLocalClouldDevice
The embedded web/cloud layer also reports:
FormatException SyntaxError JSON Parse error
Error running JavaScript: Unsupported result type
Persistence/storage investigation I checked the app’s config and local storage behavior:
~/.config/Snapmaker_Orca/Snapmaker_Orca.conf is rewritten during app use, but it does not contain obvious auth/session fields; grep only found:
sync_user_preset
user_mode
The Snapmaker-specific web storage exists here:
~/.local/share/snapmaker-orca/localstorage/https_id.snapmaker.com_0.localstorage
with matching -shm and -wal files.
However, the SQLite localstorage DB contains only:
redirect|
redirectURL|h
username|e
from|o
There is no obvious token/session/auth payload stored there.
What I suspect It looks like the visible login flow completes, but the actual authenticated session is not persisted, or the persisted data is not restored correctly on startup. The JS/JSON errors in the embedded web layer may be related.
Additional notes
I also saw one run with:
Not primary owner of DBus name - probably another SnapmakerOrca instance is running
But the blank-token startup behavior and web errors also occur in runs without relying on that specific DBus warning as the primary explanation.
Attachments
Debug logs from affected runs
Output showing localstorage contents
File/path investigation results per Linux config/local-share storage layout
Small edits before posting Replace these placeholders before you submit:
Exact app version from Help -> About
Your distro/version
Whether you launched via AppImage directly or through a desktop entry
Actual results
After restart, the app behaves as logged out. In the debug logs, loginUser is restored with empty values including an empty token, and logout-related device update events are emitted.
Expected results
After a successful cloud login, the session should persist across normal app restarts.
Project file & Debug log uploads
Checklist of files to include
- [x] Log file
- [ ] Project file
Anything else?
No response
@i-am-ez76 i have the same issue in lan mode in arch linux! With 2.2.4 it worked in lan mode but not in cloud mode.
Can you please change the title to: Linux/AppImage: Snapmaker cloud & lan login does not persist across restart
thx
Most fof the people encounter this issue on cloud login.the lan mode works great
On Sat, Apr 4, 2026, 14:39 popy2k14 @.***> wrote:
popy2k14 left a comment (Snapmaker/OrcaSlicer#226) https://github.com/Snapmaker/OrcaSlicer/issues/226#issuecomment-4187132688
@i-am-ez76 https://github.com/i-am-ez76 i have the same issue in lan mode in arch linux! With 2.2.4 it worked in lan mode but not in cloud mode.
Can you please change the title to: Linux/AppImage: Snapmaker cloud & lan login does not persist across restart
thx
— Reply to this email directly, view it on GitHub https://github.com/Snapmaker/OrcaSlicer/issues/226#issuecomment-4187132688, or unsubscribe https://github.com/notifications/unsubscribe-auth/BVKKSETFJIA74YQ5KDXQ4KD4UEGCZAVCNFSM6AAAAACXMBZ3O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCOBXGEZTENRYHA . You are receiving this because you were mentioned.Message ID: @.***>
This was reported on #116 . I have this issues as well.
Comment from Claude Code — I'm a bot. I'm responding for the author.
Fix submitted in #479. Root cause was two-fold: the session wasn't persisted at all, and even once restored, a startup race could drop the login-state push to the web UI (leaving it showing "logged out" despite a valid token). The PR persists the bearer token via the OS secret store (libsecret/Keychain/Credential Manager, never plaintext), revalidates it on startup, and closes the race so the UI reflects the restored session immediately.
Tested on Linux (Pop!_OS AppImage) and macOS — persists across restart. Would appreciate others confirming on their setups.
Orca bot: this issue is stale because it has been open for 90 days with no activity.
Hey Guys. Using Claude i have recompilled the latest version with the login check. now it actually SAVES MY LOGIN!!!!
download it from here... https://drive.google.com/file/d/1yz6n9JptRqmEkiR7eVV1wMFGFgYb6UUo/view?usp=drive_link
everytime a few version will be released, i will recompile it and post it
@i-am-ez76 thx for fixing this issue.
Please commit the code with an PR here in this repo and ping snapmaker staff, so it will be hopefully commited.
Will do. Can you verify it is working first?
On Mon, Sep 14, 2026, 18:41 popy2k14 @.***> wrote:
popy2k14 left a comment (Snapmaker/OrcaSlicer#226) https://github.com/Snapmaker/OrcaSlicer/issues/226#issuecomment-5668154761
@i-am-ez76 https://github.com/i-am-ez76 thx for fixing this issue.
Please commit the code with an PR here in this repo and ping snapmaker staff, so it will be hopefully commited.
— Reply to this email directly, view it on GitHub https://github.com/Snapmaker/OrcaSlicer/issues/226?email_source=notifications&email_token=BVKKSEWO6EFFZSNVXHLOA4L5PAUVJA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRWHAYTKNBXGYY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5668154761, or unsubscribe https://github.com/notifications/unsubscribe-auth/BVKKSERZLVA7UH26R75AHPT5PAUVJAVCNFSNUABFKJSXA33TNF2G64TZHM4DENRWGEYDONRZHNEXG43VMU5TIMRQGE4DCNBTGIZKC5QC . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/BVKKSEXYVQRYFTKFS2JKDUL5PAUVJA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRWHAYTKNBXGYY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y and Android https://github.com/notifications/mobile/android/BVKKSEUUXFWR6SYWF2MAO6T5PAUVJA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRWHAYTKNBXGYY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI. Download it today! You are receiving this because you were mentioned.Message ID: @.***>
@i-am-ez76 sorry i am back to windows and cant help anymore 😢
fixed it for V2.4.0
https://drive.google.com/drive/folders/1eEnrd0V2d8y3FoQ2DauNi5GsGjUUFgmm?usp=sharing
Fixed in v2.4.1 — see "Fixed an issue where Linux users' login status could not be saved" in the v2.4.1 release notes. Please test on v2.4.1 and comment/reopen if it still reproduces on your setup.
Same root cause as #984 — WebKitGTK uses an in-memory cookie store unless persistent storage is explicitly configured. Fixed by the #984 patch: persistent SQLite cookie storage at data_dir()/cache/cookies.db. See PR #1205 (closes #984), which covers this issue too.