Skip to content

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

Closed

Description

@FanderWasTaken

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)

Activity

  1. added
    bug
    on May 13, 2023
  2. filips123 commented on May 13, 2023

    @filips123
    Owner

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

  3. added
    question
    on May 13, 2023
  4. FanderWasTaken commented on May 16, 2023

    @FanderWasTaken
    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.

  5. filips123 commented on May 18, 2023

    @filips123
    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.

  6. davenetdev commented on May 24, 2023

    @davenetdev

    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.

  7. FanderWasTaken commented on May 30, 2023

    @FanderWasTaken
    Author

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

    Yep, that fixed the issue.

  8. changed the title [-]Can't create a new PWA using template[/-] [+][Issue fixed, patch needed] Can't create a new PWA using template[/+] on May 30, 2023
  9. filips123 commented on Jun 3, 2023

    @filips123
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions