Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue fixed, patch needed] Can't create a new PWA using template #337

Closed
FanderWasTaken opened this issue May 13, 2023 · 6 comments
Closed
Labels
bug Something isn't working question Further information is requested

Comments

@FanderWasTaken
Copy link

Description

After adding path to a profile template I get an error and can't create a PWA

Steps to Reproduce

  1. Add a template path in extention settings
  2. Try creating PWA
  3. 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)

Environment

  • Operating system: Fedora 37
  • System architecture: x86_64
  • Desktop environment: KDE Plasma
  • Installation method: packagecloud
  • PWAsForFirefox extension version: 2.5.0
  • PWAsForFirefox native version: 2.5.0-1
  • Firefox version: 112.0.2 (64-bit)
@FanderWasTaken FanderWasTaken added the bug Something isn't working label May 13, 2023
@filips123
Copy link
Owner

Does the directory that you specified as a template (/home/niko/.local/share/firefoxpwa/profiles/Template) exist?

@filips123 filips123 added the question Further information is requested label May 13, 2023
@FanderWasTaken
Copy link
Author

Does the directory that you specified as a template (/home/niko/.local/share/firefoxpwa/profiles/Template) exist?

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
Copy link
Owner

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
Copy link

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
Copy link
Author

There is a file named lock inside your Template folder than needs to be deleted.

Yep, that fixed the issue.

@FanderWasTaken FanderWasTaken changed the title Can't create a new PWA using template [Issue fixed, patch needed] Can't create a new PWA using template May 30, 2023
@filips123
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants