You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Issue fixed, patch needed] Can't create a new PWA using template #337
After adding path to a profile template I get an error and can't create a PWA
Steps to Reproduce
Add a template path in extention settings
Try creating PWA
See error
Additional Information
06:31:17 [INFO] Received a request: CreateProfile(CreateProfile { name: Some("GitHub"), description: None, template: Some("/home/niko/.local/share/firefoxpwa/profiles/Template") })
06:31:17 [INFO] Creating the profile
06:31:17 [INFO] Copying a profile template
06:31:17 [ERROR] Failed to process request
Caused by:
0: Failed to copy a profile template
1: No such file or directory (os error 2)
This is interesting... There are two things you can try. First, check if your template directory and files within it are readable by the firefoxpwa/firefoxpwa-connector. Second, check if a new empty profile directory is created just before this error occurs.
I'll close this issue. Those files probably can't be removed automatically if they can't even be copied, so you will need to remove them manually. I also think they can only generate if you copy the directory while that profile is running, so the issue shouldn't happen if you close PWA before copying.
But I'll mention what to do in this case on a new documentation website that I'm preparing. More details in #335.
Activity
filips123 commentedon May 13, 2023
Does the directory that you specified as a template (
/home/niko/.local/share/firefoxpwa/profiles/Template) exist?FanderWasTaken commentedon May 16, 2023
Yes it does. The way I made it was that I created a PWA, set it up and copied the folder and changed it's name.
filips123 commentedon May 18, 2023
This is interesting... There are two things you can try. First, check if your template directory and files within it are readable by the
firefoxpwa/firefoxpwa-connector. Second, check if a new empty profile directory is created just before this error occurs.davenetdev commentedon May 24, 2023
Had the same issue. There is a file named lock inside your Template folder than needs deleted. Works now for me after deleting the lock file.
FanderWasTaken commentedon May 30, 2023
Yep, that fixed the issue.
[-]Can't create a new PWA using template[/-][+][Issue fixed, patch needed] Can't create a new PWA using template[/+]filips123 commentedon Jun 3, 2023
I'll close this issue. Those files probably can't be removed automatically if they can't even be copied, so you will need to remove them manually. I also think they can only generate if you copy the directory while that profile is running, so the issue shouldn't happen if you close PWA before copying.
But I'll mention what to do in this case on a new documentation website that I'm preparing. More details in #335.